rxn.utilities.files
Functions
|
Append an iterable of strings to a file. |
|
|
|
Write an iterable of strings to a file. |
|
Write tuples to multiple files (1st tuple value ends up in 1st file, etc.). |
|
Create a directory if it does not exist already, and raise if not empty. |
|
Get the file size as a readable string. |
|
True if the current user has sufficient permissions to create the passed pathname; False otherwise. |
|
True if the passed pathname is a valid pathname for the current OS _and_ either currently exists or is hypothetically creatable; False otherwise. |
|
True if the passed pathname is a valid pathname for the current OS; False otherwise. |
|
|
|
Read from several files at once, and put the values from the same lines numbers into tuples. |
|
|
|
Get the path for a temporary directory and create it. |
|
Get the path for a temporary file or directory, without creating it (can be especially useful in tests). |
|
Whether paths, possibly given in a mix of absolute and relative formats, point to the same file. |
|
Raise an exception if input and output paths point to the same file. |
|
Shuffle a file in a deterministic order (the same seed always reorders files of the same number of lines identically). |