Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Helo,

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.

share|improve this question

2 Answers 2

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%3Apassword@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.

share|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 –  solomongaby 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
up vote 0 down vote accepted

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 :

~/.filezilla/filezilla.xml

the config name is :

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

Your Answer

 
discard

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.