OpenQuizz
Une application de gestion des contenus pédagogiques
|
Functions | |
def | check_path_owner (path) |
def | copy2_fixed (src, dest) |
def | is_socket (path) |
def | adjacent_tmp_file (path, **kwargs) |
def | test_writable_dir (path) |
def | find_files (path, pattern) |
def | file_size (path) |
def | format_file_size (path) |
def | directory_size (path) |
def | format_directory_size (path) |
Variables | |
reraise | |
True | |
stop | |
wait | |
replace | |
def pip._internal.utils.filesystem.adjacent_tmp_file | ( | path, | |
** | kwargs | ||
) |
Return a file-like object pointing to a tmp file next to path. The file is created securely and is ensured to be written to disk after the context reaches its end. kwargs will be passed to tempfile.NamedTemporaryFile to control the way the temporary file will be opened.
def pip._internal.utils.filesystem.check_path_owner | ( | path | ) |
def pip._internal.utils.filesystem.copy2_fixed | ( | src, | |
dest | |||
) |
Wrap shutil.copy2() but map errors copying socket files to SpecialFileError as expected. See also https://bugs.python.org/issue37700.
def pip._internal.utils.filesystem.directory_size | ( | path | ) |
def pip._internal.utils.filesystem.file_size | ( | path | ) |
def pip._internal.utils.filesystem.find_files | ( | path, | |
pattern | |||
) |
Returns a list of absolute paths of files beneath path, recursively, with filenames which match the UNIX-style shell glob pattern.
def pip._internal.utils.filesystem.format_directory_size | ( | path | ) |
def pip._internal.utils.filesystem.format_file_size | ( | path | ) |
def pip._internal.utils.filesystem.is_socket | ( | path | ) |
def pip._internal.utils.filesystem.test_writable_dir | ( | path | ) |
Check if a directory is writable. Uses os.access() on POSIX, tries creating files on Windows.
replace |
reraise |
stop |
True |
wait |