Skip to content

Commit

Permalink
Fix Setting Menu Skip Error
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Oct 20, 2023
1 parent 54ed440 commit 588d78a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imgextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def scan_dir(root_inode, root_path=""):
cap = ' capabilities={cap}'.format(cap=cap)
if entry_inode.is_dir:
dir_target = self.EXTRACT_DIR + entry_inode_path.replace(' ', '_').replace('"', '')
if dir_target.endswith('.') and os.name == 'nt':
dir_target = dir_target[:-1]
if not os.path.isdir(dir_target):
os.makedirs(dir_target)
if os.name == 'posix' and os.geteuid() == 0:
Expand Down

0 comments on commit 588d78a

Please sign in to comment.