Skip to content

Commit

Permalink
Merge pull request #5 from garywahaha/patch-1
Browse files Browse the repository at this point in the history
filePath should be passed to isdir
  • Loading branch information
asadman1523 committed Dec 6, 2021
2 parents 8a59f37 + 4a1c263 commit 7857887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odvrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def dropEvent(self, event):
raise

def processDrop(self, obj, filePath):
if os.path.isdir():
if os.path.isdir(filePath):
for child in os.listdir():
self.processDrop(obj, child)
elif os.path.isfile(filePath):
Expand Down

0 comments on commit 7857887

Please sign in to comment.