Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

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?

Categories

Answer Discussion
Tutorials

 

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 a Tutorial in the Tutorial 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 tutorials 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

10279

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

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