Custom Query (120 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (37 - 39 of 120)

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Ticket Resolution Summary Owner Reporter
#91 fixed use namedtuple for stat result. schwa ftputiluser
Description

The information returned by stat is not intuitive:

(33152, None, None, 1, u'1004', u'1004', 6, None, 1421830200.0, None)

I know where to get the relevant docs. But it would be much easier to deal with the result, if a namedtuple would be used.

#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.

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Note: See TracQuery for help on using queries.