Let us walk on the 3-isogeny graph
|
Functions | |
bool | check_path_owner (str path) |
Generator[BinaryIO, None, None] | adjacent_tmp_file (str path, **Any kwargs) |
bool | test_writable_dir (str path) |
bool | _test_writable_dir_win (str path) |
List[str] | find_files (str path, str pattern) |
Union[int, float] | file_size (str path) |
str | format_file_size (str path) |
Union[int, float] | directory_size (str path) |
str | format_directory_size (str path) |
Variables | |
_replace_retry = retry(reraise=True, stop=stop_after_delay(1), wait=wait_fixed(0.25)) | |
replace = _replace_retry(os.replace) | |
|
protected |
Definition at line 94 of file filesystem.py.
References i.
Referenced by pip._internal.utils.filesystem.test_writable_dir().
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.
Definition at line 44 of file filesystem.py.
References i.
bool check_path_owner | ( | str | path | ) |
Definition at line 16 of file filesystem.py.
References i.
Union[int, float] directory_size | ( | str | path | ) |
Definition at line 143 of file filesystem.py.
References pip._internal.utils.filesystem.file_size(), and i.
Referenced by pip._internal.utils.filesystem.format_directory_size().
Union[int, float] file_size | ( | str | path | ) |
Definition at line 132 of file filesystem.py.
References i.
Referenced by pip._internal.utils.filesystem.directory_size(), and pip._internal.utils.filesystem.format_file_size().
List[str] find_files | ( | str | path, |
str | pattern | ||
) |
Returns a list of absolute paths of files beneath path, recursively, with filenames which match the UNIX-style shell glob pattern.
Definition at line 122 of file filesystem.py.
References i.
str format_directory_size | ( | str | path | ) |
Definition at line 152 of file filesystem.py.
References pip._internal.utils.filesystem.directory_size().
str format_file_size | ( | str | path | ) |
Definition at line 139 of file filesystem.py.
References pip._internal.utils.filesystem.file_size().
bool test_writable_dir | ( | str | path | ) |
Check if a directory is writable. Uses os.access() on POSIX, tries creating files on Windows.
Definition at line 76 of file filesystem.py.
References pip._internal.utils.filesystem._test_writable_dir_win(), and i.
|
protected |
Definition at line 69 of file filesystem.py.
replace = _replace_retry(os.replace) |
Definition at line 71 of file filesystem.py.