Latest Version: 0.9.6.2

FoundFile

Represents a single file found as the result of a command.

Has attributes:

path:
The path of the file, relative to the base_path
full:
The full path
stat:
The results of os.stat. Also mtime and size contain the .st_mtime and st_size of the stat.
bytes:
The contents of the file.

You may use the in operator with these objects (tested against the contents of the file), and the .mustcontain() method.


Attributes

a bytes

<property object at 0x2100120>

a dir

False

a file

True

Methods

f __contains__(self, s) ...

f __init__(self, base_path, path) ...

f bytes__get(self) ...

f mustcontain(self, s) ...

See the source for more information.

Top