files
files#
Tools for paths and files
Functions
|
Add folders to an already existing zip file (recursively). |
|
Archives a folder recursively. |
|
Copy a file or a directory (recursively) with |
|
Extract an archived file (zip or others). |
|
Extract all archived files. |
|
Returns matching files recursively from a list of root paths. |
|
Get the list of all the files contained in an archive. |
|
Get archived file path from inside the archive. |
|
Get archived file path from inside the archive, to be read with rasterio: |
|
Get file extension from file path, ie: WITHOUT THE FIRST POINT |
|
Get one or all matching files (pattern + extension) from inside a directory. |
|
Get file name (without extension) from file path, ie: |
Get the root path of the current disk: |
|
|
Hash a file into a unique str. |
|
Determine whether the directory is writeable or not. |
|
Get absolute path of all files in the given directory. |
|
Load a pickled object. |
|
Read archived file (in bytes) from |
|
Read archived HTML from |
|
Read archived XML from |
|
Read a JSON file |
|
Gives the real relative path from a starting folder. |
|
Deletes a file or a directory (recursively) using |
|
Remove files corresponding to a pattern from a directory. |
|
Save a JSON file, with datetime, numpy types and Enum management. |
|
Save an object as a pickle (can save any Python objects). |
|
Return the absolute path of the specified path and check if it exists |
Classes
|
Decoder for JSON with methods for datetimes |
|
Encoder for JSON with methods for datetimes and np.int64 |