File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
_delphi_utils_python/delphi_utils Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -641,8 +641,23 @@ def archive_exports(self, exported_files):
641641 successes: All files from input
642642 fails: Empty list
643643 """
644+ archive_success , archive_fail = [], []
645+ for exported_file in exported_files :
646+ archive_file = abspath (
647+ join (self .cache_dir , basename (exported_file )))
648+
649+ # Copy export to cache
650+ try :
651+ # Archive
652+ shutil .copyfile (exported_file , archive_file )
653+ archive_success .append (exported_file )
654+
655+ except FileNotFoundError as ex :
656+ print (ex )
657+ archive_fail .append (exported_file )
658+
644659 self ._exports_archived = True
645- return exported_files , []
660+ return archive_success , archive_fail
646661
647662 def update_cache (self ):
648663 """Handle cache updates with a no-op.
You can’t perform that action at this time.
0 commit comments