Skip to content

Commit

Permalink
Fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeeban authored Mar 17, 2021
1 parent 01f8524 commit 07e6e4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/meta-extraction/MetadataExtractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ 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 @@ -234,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 07e6e4a

Please sign in to comment.