/usr/share/pyshared/ftpcloudfs/errors.py is in python-ftp-cloudfs 0.25.2+20140217+git2a90c1a2eb-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | """
Errors for ObjectStorageFS
"""
class IOSError(OSError, IOError):
"""
Subclass of OSError and IOError.
This is needed because pyftpdlib catches either OSError, or
IOError depending on which operation it is performing, which is
perfectly correct, but makes our life more difficult.
However our operations don't map to simple functions, and have
common infrastructure. These common infrastructure functions can
be called from either context and so don't know which error to
raise.
Using this combined type everywhere fixes the problem at very
small cost (multiple inheritance!).
"""
|