Skip to content

Commit

Permalink
Merge pull request #112 from Emory-HITI/dev
Browse files Browse the repository at this point in the history
Remove redundant folder name in front
  • Loading branch information
pradeeban authored Mar 17, 2021
2 parents 9644da5 + 07e6e4a commit 7186745
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/meta-extraction/MetadataExtractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ def extract_metadata():
# Delete the processed DICOM objects from the storage.
def clear_storage():
os.chdir(STORAGE_FOLDER)

global processed_series_but_yet_to_delete
global processed_and_deleted_series

Expand All @@ -236,7 +235,7 @@ def clear_storage():

for del_series in processed_series_but_yet_to_delete:
try:
shutil.rmtree(STORAGE_FOLDER + del_series)
shutil.rmtree(del_series)
processed_and_deleted_series.append(del_series)
processed_series_but_yet_to_delete.remove(del_series)

Expand Down

0 comments on commit 7186745

Please sign in to comment.