mirror of https://github.com/papermerge/mglib
Compare commits
2 Commits
21a9ebb57b
...
c5a0be464c
Author | SHA1 | Date |
---|---|---|
Eugen Ciur | c5a0be464c | |
Eugen Ciur | 6fecc4d60f |
|
@ -137,7 +137,7 @@ class Storage:
|
||||||
if os.path.exists(abs_dirname_results):
|
if os.path.exists(abs_dirname_results):
|
||||||
os.rmdir(abs_dirname_results)
|
os.rmdir(abs_dirname_results)
|
||||||
|
|
||||||
def copy_doc(self, src, dst):
|
def copy_doc(self, src: DocumentPath, dst: DocumentPath):
|
||||||
"""
|
"""
|
||||||
copy given file src file path to destination
|
copy given file src file path to destination
|
||||||
as absolute doc_path
|
as absolute doc_path
|
||||||
|
@ -156,7 +156,7 @@ class Storage:
|
||||||
f"copy_doc: {src} to {dst}"
|
f"copy_doc: {src} to {dst}"
|
||||||
)
|
)
|
||||||
shutil.copyfile(
|
shutil.copyfile(
|
||||||
src,
|
self.abspath(src),
|
||||||
self.abspath(dst)
|
self.abspath(dst)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = mglib
|
name = mglib
|
||||||
version = 1.3.6
|
version = 1.3.7
|
||||||
description = Common code used across all Papermerge project utilities
|
description = Common code used across all Papermerge project utilities
|
||||||
long_description = file: README.rst
|
long_description = file: README.rst
|
||||||
url = https://www.papermerge.com/
|
url = https://www.papermerge.com/
|
||||||
|
|
Loading…
Reference in New Issue