Register  |  Login

Question Details    

   Question

Time: 12:57 - Feb 13, 2007     Asked by: jgivoni      Status: Answered      Points: 125   

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?

Ask a New Question

Become a Quomon Expert

Current Categories

 

Other Questions Needing Answers


   

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

Expert:

dustPuppy

Date:

Feb 13, 2007

Time:

13:51

 

Votes: Good (0) | Bad (0)
Login to rate this answer

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.

Expert:

jgivoni

Date:

Feb 13, 2007

Time:

14:12

 

Votes: Good (0) | Bad (0)
Login to rate this answer

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

Expert:

jgivoni

Date:

Feb 17, 2007

Time:

10:23

 

Votes: Good (0) | Bad (0)
Login to rate this answer

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

Expert:

dustPuppy

Date:

Feb 17, 2007

Time:

13:08

 

Votes: Good (0) | Bad (0)
Login to rate this answer

"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.

Expert:

jgivoni

Date:

Feb 17, 2007

Time:

13:16

 

Votes: Good (0) | Bad (0)
Login to rate this answer

Question Answered

This question has been answered, 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 this question by clicking on the "Answer Summaries" Tab.

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



Respond to 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:


Forgotten Password

 

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:


Forgotten Password
   

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


All Questions


Language Options

English:

www.quomon.com

Español:

www.quomon.es

Sponsors

Questions and Answers Software
Real Estate Postcards
Marketing Fulfillment