Browse Source

add docstring

shut
Niklas Rosenstein 10 months ago
parent
commit
8dd618e2bd
No known key found for this signature in database GPG Key ID: 6D269B33D25F6C6
1 changed files with 5 additions and 0 deletions
  1. + 5
    - 0
      src/shut/utils/io/virtual.py

+ 5
- 0
src/shut/utils/io/virtual.py

@ -63,6 +63,11 @@ class VirtualFiles:
create_directories: bool=True,
dry: bool=False,
) -> None:
"""
Writes all files to disk. Relative files will be written relative to the
*parent_directory*.
"""
for file_ in self._files:
filename = os.path.normpath(os.path.join(parent_directory or '.', file_['filename']))
exists = os.path.isfile(filename)

Loading…
Cancel
Save