Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bug
  • Loading branch information
jshum2479 committed Feb 1, 2023
commit 67583a7371fc3ea4f11eec73216458d7e0dc90dd
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def _add_wallet_directory_to_archive(self, datasource, collected_wallet_dictiona
# },
# .... }
#

if not onprem_wallet_parent_path in collected_wallet_dictionary:
if onprem_wallet_dir_is_not_flat:
fixed_path = archive_file.addDatabaseWallet(wallet_name, os.path.abspath(property_value))
Expand All @@ -180,9 +179,10 @@ def _add_wallet_directory_to_archive(self, datasource, collected_wallet_dictiona
else:
# if the directory has already been visited before
# check for the wallet to see if the file has already been collected on prem and add only the file
if not archive_file.isPathIntoArchive(os.path.join(
collected_wallet_dictionary[onprem_wallet_parent_path]['path_into_archive'],
os.path.basename(property_value))):
check_path = os.path.join(
collected_wallet_dictionary[onprem_wallet_parent_path]['path_into_archive'],
os.path.basename(property_value))
if not check_path in archive_file.getArchiveEntries() and os.path.isfile(property_value):
# only case is it is not flat directory if the particular file has not been collected before, add
# it to the previous wallet
fixed_path = archive_file.addDatabaseWallet(collected_wallet_dictionary[onprem_wallet_parent_path]['wallet_name'],
Expand Down