file (3)
dir¶
dir(s)
Return true if the pathname refers to an existing directory.
DocStrings
Source code in python3.12/genericpath.py
39 40 41 42 43 44 45 |
|
file¶
file(path)
Test whether a path is a regular file
DocStrings
Source code in python3.12/genericpath.py
27 28 29 30 31 32 33 |
|
folder_with_files¶
folder_with_files(directory: str | os.PathLike[str]) -> bool
Check if given directory exists and contains any files.
DocStrings
Parameters:
Name | Type | Description | Default |
---|---|---|---|
directory
|
str | PathLike[str]
|
The directoy to check |
required |
Source code in src/jinjarope/envtests.py
168 169 170 171 172 173 174 175 176 177 |
|