mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 08:37:19 +01:00
todo note.
This commit is contained in:
parent
2d559d330d
commit
ef6690905e
1 changed files with 1 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ def create_source_path_directory(source_path):
|
||||||
os.makedirs(os.path.dirname(source_path), exist_ok=True)
|
os.makedirs(os.path.dirname(source_path), exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: also make this work for archive dir
|
||||||
def delete_empty_directories(directory):
|
def delete_empty_directories(directory):
|
||||||
# Go up in the directory hierarchy and try to delete all directories
|
# Go up in the directory hierarchy and try to delete all directories
|
||||||
directory = os.path.normpath(directory)
|
directory = os.path.normpath(directory)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue