Operating system-related utility functions for Sphinx.
Unknown Field: copyright | |
Copyright 2007-2022 by the Sphinx team, see AUTHORS. | |
Unknown Field: license | |
BSD, see LICENSE for details. |
Constant | SEP |
Undocumented |
Variable | fs_encoding |
Undocumented |
Variable | no_fn_re |
Undocumented |
Variable | Path |
Undocumented |
Variable | project_suffix_re |
Undocumented |
Class | FileAvoidWrite |
File-like object that buffers output and only writes if content changed. |
Function | abspath |
Undocumented |
Function | canon_path |
Return path in OS-independent form |
Function | cd |
Undocumented |
Function | copyfile |
Copy a file and its modification times, if possible. |
Function | copytimes |
Copy a file's modification times. |
Function | ensuredir |
Ensure that a path exists. |
Function | make_filename |
Undocumented |
Function | make_filename_from_project |
Undocumented |
Function | movefile |
Move a file, removing the destination if it exists. |
Function | mtimes_of_files |
Undocumented |
Function | os_path |
Undocumented |
Function | relative_uri |
Return a relative URL from base to to. |
Function | relpath |
Return a relative filepath to path either from the current directory or from an optional start directory. |
Function | rmtree |
Undocumented |
Parameters | |
nativepath:str | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
target_dir:str | Undocumented |
Returns | |
Generator[ | Undocumented |
Copy a file and its modification times, if possible.
Note: copyfile skips copying if the file has not been changed
Parameters | |
source:str | Undocumented |
dest:str | Undocumented |
Parameters | |
source:str | Undocumented |
dest:str | Undocumented |
Undocumented
Parameters | |
project:str | Undocumented |
Returns | |
str | Undocumented |
Parameters | |
source:str | Undocumented |
dest:str | Undocumented |
Undocumented
Parameters | |
dirnames:List[ | Undocumented |
suffix:str | Undocumented |
Returns | |
Iterator[ | Undocumented |
Undocumented
Parameters | |
canonicalpath:str | Undocumented |
Returns | |
str | Undocumented |
Parameters | |
base:str | Undocumented |
to:str | Undocumented |
Returns | |
str | Undocumented |
Return a relative filepath to path either from the current directory or from an optional start directory.
This is an alternative of os.path.relpath(). This returns original path if path and start are on different drives (for Windows platform).
Parameters | |
path:str | Undocumented |
start:str | Undocumented |
Returns | |
str | Undocumented |