i am building a bash script that will open filezilla. I managed to make it to open a certain FTP, but cant figure out how to make it to open a certain local directory.


You have 2 options:

  • Either, specify a default folder on Filezilla site manager and open it with filezilla --site=the_site_name_and_path (see below),
  • Or, open it up directly, using something like:

filezilla ftp://user:password@ftpaddress/path

The tricky bit has to do with the first option (using the site manager). The syntax is not very intuitive. You need to both specify the path to the site name and prefix the whole thing with a 0.

So, a website named "mysite" that you created in the Site Manager under My Sites\Hosting will be called as this:

filezilla --site="0Hosting/mysite"

You start by typing '0', then introduce the path to the site as seen on the site manager and ignoring the "My Sites" folder, and finish with the site name. You enclose everything under double quotes.

As for Local Paths...

Unfortunately this is not possible. Filezilla wasn't meant to be used for automated transfers (see official stance, last December, 2008. 2nd Reply). Thus command line options are limited to what you can see through filezilla -h.

However there's an old feature request on Filezilla Trac's that was deemed an official answer indicating plans to create a command line client sometime after version 3. I do not know if this is being done or not, if it was abandoned or not. I do suggest you try the filezilla official forums. My guess is due to lack of requests, the idea was dropped.

| improve this answer | |
  • my problem is not to open a certain FTP .. but to open a certain local directory ( the left tab ) ... and i know you could put a certain local directory for the ftp server but that would be to much trouble .. i was wondering if there is a way to open directly a certain directory .. as a parameter – Gabriel Solomon Oct 9 '09 at 15:47
  • Oh, I see! I'll update my answer to reflect that, for matters of completeness. But for your information. Not, It's not possible. – A Dwarf Oct 9 '09 at 17:59

I managed to solve it by writing the filezilla config file that contains the last opened local directory before open it. In ubuntu its located here :


the config name is :

<Setting name="Last local directory" type="string"> ... </Setting>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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