Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm searching for a way to not transfer .DS_Store files when launching FTP or SCP transfers for a directory.

Is it possible to block .DS_Store files from being transferred along with the other files I'm moving?

I'm actually using FileZilla app

share|improve this question
up vote 6 down vote accepted

Under Filezilla client, you can configure it to block some file extensions.

In View >> Filename filters... you have to create a new filter. Go to Edit filter rules... and New. Look the existing filter called "Useless Explorer files" to adapt to Mac OSx files like .DS_Store

From FileZilla oficial forums


share|improve this answer
i checked your since dunno why maybe you read in my thoughts i'm using fileZilla actually :P thank you man! – sbaaaang Jul 5 '13 at 15:18
@sbaaaang Just a small tip: Next time, please mention what program you're using. This will get you better answers without others having to read your mind ;) Thanks – slhck Jul 5 '13 at 15:23
@slhck yeah i was going to edit the question indeed sorry – sbaaaang Jul 5 '13 at 15:24
There is a peace :p – oSiNaReF Jul 7 '13 at 10:10

If you use Cyberduck as a client, it will automatically skip those files (and several others) during transmission.

This applies to both FTP and SFTP connections.

If you're going command-line, you should use rsync instead of scp. With rsync you can add the option --exclude='.DS_Store' to skip those.

share|improve this answer
No, the second one in the list is .DS_Store. The first one is .*~\..*, so it matches the tilde-backup files. Regular dotfiles will be transmitted. – slhck Jul 5 '13 at 9:52
Ah, right. Sorry, I missed the lack of a |. – Bob Jul 5 '13 at 10:22
+1 thank you, i'm using FileZilla but it's nice also for using Cyberduck eheh – sbaaaang Jul 5 '13 at 15:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.