Register  |  Login


Question

Status: Closed Points: 125 Time: 12:57 - Feb 13, 2007  

jgivoni

FTP hiding files beginning with dot.

How do I avoid problems when working with files and directories that starts with a dot (like .htaccess)?
I want to name some of my files like .example but this is giving me problems with the ftp client, that from time to time forgets that those files are on the server. That makes it quite difficult to work with folder compare/synchronize features.
Could there be a way around this?

Answer Discussion
Answer Summaries

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

dustPuppy

Date:: Feb 13, 2007

Time:: 13:51

i don't have an answer for that, but I suppose it depends on your operating system and the ftp program you use?

jgivoni

Date:: Feb 13, 2007

Time:: 14:12

My ftp client doesn't seem to have a setting for this, so I guess it is up to the server (it only happens in the remote folder). The server is running linux with some unknown ftp server.

jgivoni

Date:: Feb 17, 2007

Time:: 10:23

I've been reading about this and found that the normal policy of ftp servers is to hide any files or folders that begin with a dot.
Which mean that if you ask the server to list the files and folders (LIST command) in a folder, it will not list these files. However you are still able to store and fetch them (upload/download) when you specify their name explicitly. Likewise, you can list the content of a folder, whose name starts with a dot, if you specify the name of the folder explicitly.

My problem was (and I guess this could be the problem for most ftp clients) that when the client asks the server to list the content of a directory, and the result excludes hidden folders, the client will think that the folder is not there and therefore will not ask to list the content of the folder. A bit tricky, and a real problem, when trying to compare local and remote folders and syncronize them. The client would think that a whole folder of files have not been uploaded.

The solution in my case was really simple though.
If you add the -a switch to the list command (LIST -a), most ftp servers will honour the request to show ALL files and folders.
I was lucky that my client had an option in the preferences to customize the list command. By simply typing -a in the LIST options box, everything is working like a charm.

Other clients might not have this simple option or the server might not show dot-files even with the LIST -a command. If you have other solutions, please share them!

Jakob

dustPuppy

Date:: Feb 17, 2007

Time:: 13:08

glad you found the solution.
Which ftp program are you using?

jgivoni

Date:: Feb 17, 2007

Time:: 13:16

"Beyond Compare"
Great little tool, easy to use - only freezes from time to time.
It's not only for ftp. It keeps your local files in sync as well.

Question Answered

This question has been closed, and points have been rewarded to the following experts:

jgivoni: 125

You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for the Summary Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No summaries have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use


Top Experts

View More

Rank

Expert

Points

1.

nidhi

6162

2.

rcastagna

4171

3.

LAGM

3650

4.

PeterNZ

2807

5.

oracleofDelphi

2698

6.

jgivoni

1953

7.

xarcus

1820

8.

gonzalo

1000

9.

Anpanman

812

10.

theDude

695

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es