module documentation

Operating system-related utility functions for Sphinx.

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 mtimes_of_files Undocumented
Function os_path Undocumented
Function path_stabilize Normalize path separator and unicode string
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
Constant SEP Undocumented
Variable fs_encoding Undocumented
Variable no_fn_re Undocumented
Variable project_suffix_re Undocumented
def abspath(pathdir): (source)

Undocumented

Parameters
pathdir:strUndocumented
Returns
strUndocumented
def canon_path(nativepath): (source)

Return path in OS-independent form

Parameters
nativepath:strUndocumented
Returns
strUndocumented

Undocumented

Parameters
target_dir:strUndocumented
Returns
Generator[None, None, None]Undocumented
def copyfile(source, dest): (source)

Copy a file and its modification times, if possible. Note: ``copyfile`` skips copying if the file has not been changed

Parameters
source:strUndocumented
dest:strUndocumented
def copytimes(source, dest): (source)

Copy a file's modification times.

Parameters
source:strUndocumented
dest:strUndocumented
def ensuredir(path): (source)

Ensure that a path exists.

Parameters
path:strUndocumented
def make_filename(string): (source)

Undocumented

Parameters
string:strUndocumented
Returns
strUndocumented
def make_filename_from_project(project): (source)

Undocumented

Parameters
project:strUndocumented
Returns
strUndocumented
def mtimes_of_files(dirnames, suffix): (source)

Undocumented

Parameters
dirnames:list[str]Undocumented
suffix:strUndocumented
Returns
Iterator[float]Undocumented
def os_path(canonicalpath): (source)

Undocumented

Parameters
canonicalpath:strUndocumented
Returns
strUndocumented
def path_stabilize(filepath): (source)

Normalize path separator and unicode string

Parameters
filepath:strUndocumented
Returns
strUndocumented
def relative_uri(base, to): (source)

Return a relative URL from ``base`` to ``to``.

Parameters
base:strUndocumented
to:strUndocumented
Returns
strUndocumented
def relpath(path, start=os.curdir): (source)

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:strUndocumented
start:str|NoneUndocumented
Returns
strUndocumented
def rmtree(path): (source)

Undocumented

Parameters
path:strUndocumented

Undocumented

Value
'/'
fs_encoding = (source)

Undocumented

no_fn_re = (source)

Undocumented

project_suffix_re = (source)

Undocumented