Custom Query (104 matches)

Filters
 
Or
 
  
 
Columns

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
Description

Hi,

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/host.py", line 499, in download
    conditional=False, callback=callback)
  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/file_transfer.py", line 182, in copy_file
    source_fobj = source_file.fobj()
  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/file_transfer.py", line 94, in fobj
    return self._host.open(self.name, self.mode)
  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/host.py", line 203, in open
    encoding=encoding, errors=errors, newline=newline)
  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/file.py", line 92, in _open
    self._conn = self._session.transfercmd(command)
  File "/home/foo_the_d/local/lib/python2.7/site-packages/ftputil/error.py", 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)

Regards,

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
Description

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:

http://ftputil.sschwarzer.net/trac/wiki/Documentation#ftphost-objects

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
Description

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:

/aaa/bbb/ccc

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

/aaa
/aaa/bbb
/aaa/bbb/ccc
/aaa/bbb/ccc/ddd
/aaa/bbb/ccc/ddd/eee

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:

/aaa
/aaa/bbb
/aaa/bbb/ccc

and only try to create:

/aaa/bbb/ccc/ddd
/aaa/bbb/ccc/ddd/eee

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.