jade.utils.utils¶
Utility functions for the jade package.
Functions
|
Aggregate objects from files in directory matching end_substring. |
|
Validates that a name is valid for use as a filename or directory. |
|
Returns a generator dividing items into chunks. |
|
Creates a script with the given text. |
|
Decompress a file. |
|
Dump data to the filename. |
Return the command-line arguments issued. |
|
|
Return the total space consumed by all files in directory. |
|
Return filenames in directory, recursively, with file extension. |
|
Return all files in directory matching filename, searching recursively. |
|
Decorator to catch FileNotFoundError exceptions. |
|
Decorator to catch KeyError exceptions that happen because the user performs invalid actions. |
|
Return a datetime object from a timestamp string. |
|
Load data from the file. |
|
Set all files in the directory to be read-only. |
|
Set the file to be read-only. |
|
Modifies a file by running a function on each line. |
|
|
|
Deletes the directory tree if it exists. |
|
Rotates filenames in directory, recursively, to .1, .2, .etc. |
|
Validate string timestamp and output standard format. |
Classes
|
Constructor for JSONEncoder, with sensible defaults. |