pkgcore.fs.fs module¶
filesystem entry abstractions
- class pkgcore.fs.fs.fsDev(path, major=-1, minor=-1, **kwds)[source]¶
Bases:
fsBase
dev class (char/block objects)
- is_dev = True¶
- major¶
- minor¶
- class pkgcore.fs.fs.fsDir(location, strict=True, **d)[source]¶
Bases:
fsBase
dir class
- is_dir = True¶
- class pkgcore.fs.fs.fsFifo(location, strict=True, **d)[source]¶
Bases:
fsBase
fifo class (socket objects)
- is_fifo = True¶
- class pkgcore.fs.fs.fsFile(location, chksums=None, data=None, **kwds)[source]¶
Bases:
fsBase
file class
- chksums¶
- data¶
- property data_source¶
alias to data
- dev¶
- inode¶
- is_reg = True¶
- pkgcore.fs.fs.fsSymlink¶
alias of
fsLink
- pkgcore.fs.fs.isdev(*moreargs, **morekwargs)¶
return True if obj is an instance of
dev
, else False
- pkgcore.fs.fs.isfifo(*moreargs, **morekwargs)¶
return True if obj is an instance of
fifo
, else False
- pkgcore.fs.fs.isfs_obj(*moreargs, **morekwargs)¶
return True if obj is an fsBase derived object
- pkgcore.fs.fs.isreg(*moreargs, **morekwargs)¶
return True if obj is an instance of
reg
, else False
- pkgcore.fs.fs.issym(*moreargs, **morekwargs)¶
return True if obj is an instance of
sym
, else False