Objects of this class doesn't represent real files, so they don't have
a name. They are required to be indexed though.
|
|
__init__(self,
index,
stat=None)
ROPath initializer |
source code
|
|
|
|
set_from_stat(self)
Set the value of self.type, self.mode from self.stat |
source code
|
|
|
|
blank(self)
Black out self - set type and stat to None |
source code
|
|
|
|
exists(self)
True if corresponding file exists |
source code
|
|
|
|
isreg(self)
True if self corresponds to regular file |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getdevloc(self)
Return device number path resides on |
source code
|
|
|
|
getsize(self)
Return length in bytes from stat object |
source code
|
|
|
|
getmtime(self)
Return mod time of path in seconds |
source code
|
|
|
|
get_relative_path(self)
Return relative path, created from index |
source code
|
|
|
|
getperms(self)
Return permissions mode, owner and group |
source code
|
|
|
|
open(self,
mode)
Return fileobj associated with self |
source code
|
|
|
|
get_data(self)
Return contents of associated fileobj in string |
source code
|
|
|
|
setfileobj(self,
fileobj)
Set file object returned by open() |
source code
|
|
|
|
init_from_tarinfo(self,
tarinfo)
Set data from tarinfo object (part of tarfile module) |
source code
|
|
|
|
get_ropath(self)
Return ropath copy of self |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
compare_data(self,
other)
Compare data from two regular files, return true if same |
source code
|
|
|
|
perms_equal(self,
other)
True if self and other have same permissions and ownership |
source code
|
|
|
|
|
|
|
copy_attribs(self,
other)
Only copy attributes from self to other |
source code
|
|
|
|
__repr__(self)
Return string representation |
source code
|
|