niprov.filesystem module¶
-
class
niprov.filesystem.Filesystem¶ Bases:
objectWrapper of filesystem access functionality such as that implemented by the os package in the standard library.
-
fileExists(path)¶
-
getctime(path)¶ Get the creation time for the file at path.
Parameters: path – Path to the file to read. Returns: Time when the file was last changed Return type: datetime
-
getsize(path)¶
-
read(path)¶ Read the contents of a textfile.
Parameters: path – Path to the file to read. Returns: Contents of the file Return type: str Raises: IOError– [Errno 2] No such file or directory: ‘xyz’
-
readlines(path)¶
-
walk(path)¶
-
write(path, content)¶ Write string content to a textfile.
Parameters: - path – Path to the file to read.
- content (str) – What to fill the file with
-