Skip to content

Commit

Permalink
the large file already contain the prefix and so needed to be handled…
Browse files Browse the repository at this point in the history
… accordingly
  • Loading branch information
shadaba committed Dec 23, 2024
1 parent 174ce66 commit 2a02c53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mocks_archive/search_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,10 @@ def get_absolute_path(archive,file):
#path to the directory
tspl=archive[len(prefix_tape):].split('/')
tdir=prefix_cfs+'/'.join(tspl[:-1])+'/'

return tdir+file
if(prefix_cfs[1:] in file):
return file
else:
return tdir+file

def print_commands_extract(comms_dic_list,outfile=None):
'''prints the command to the output for extraction'''
Expand Down

0 comments on commit 2a02c53

Please sign in to comment.