Custom Query (104 matches)


Show under each result:

Results (22 - 24 of 104)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Ticket Resolution Summary Owner Reporter
#90 wontfix Show filename on FTPIOError schwa ftputiluser


I get the following error if I try to upload/download with a wrong path.

The exception is valid and should be raised. But it would help debugging a lot if the exception would contain the filename.

Why not add the filename to the exception?

If there are good reasons to not add it: Is there a better way than wrapping a lot of FTPHost calls with a try-except-reraise wrapper?

  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/", line 499, in download
    conditional=False, callback=callback)
  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/", line 182, in copy_file
    source_fobj = source_file.fobj()
  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/", line 94, in fobj
    return, self.mode)
  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/", line 203, in open
    encoding=encoding, errors=errors, newline=newline)
  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/", line 92, in _open
    self._conn = self._session.transfercmd(command)
  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/", line 172, in __exit__
    raise FTPIOError(*exc_value.args, original_exception=exc_value)

FTPIOError: 550 Failed to open file.
Debugging info: ftputil 3.2, Python 2.7.6 (linux2)


Thomas Gütter :-)

PS: I hope you are fine. I hope we meet again somewhere.

#89 fixed Parameter "account" not need in most cases schwa ftputiluser

AFAIK parameter "account" is not needed in most cases.

I guess the docs would be better for newbees, if the first usage example of FTPHost does not use it:

And I would explain session_factory=ftplib.FTP later, not on the first usage example.

#86 fixed `makedirs` fails if an intermediate directory doesn't show contents schwa schwa

Reported by Roger Demetrescu:

I've find an issue with ftputil 3.2 (well, it happens with 2.8 and 3.0 too) when trying to use host.makedirs() withing a FTP server that doesnt show any directories/files under de root ('/')

My customer gave me this directory to work:


When I try to create this directory: ./ddd/eee/ FTPHost.makedirs() try do create those directories:


Of course, /aaa already exists, and the ftputil does this check to see if it should reraise the exception:

    if not self.path.isdir(next_directory):

The problem is: I am able to do a host.chdir('/aaa/bbb/ccc') but if I do a host.chdir('/') and try to list the files and directories, it returns an empty list.

Using FileZilla to connect to this FTP server gave me the same result. I am able to see all files and directories under /aaa/bbb/ccc but I see nothing under the root: /

FTP is a Microsoft FTP Service (don't know any more details).

So, any suggestion on how to make ftputil stop trying to create these directories:


and only try to create:


since my current directory is already /aaa/bbb/ccc ?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Note: See TracQuery for help on using queries.