Skip to content

Commit

Permalink
get() for folders
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-anand committed Sep 22, 2020
1 parent be43bd2 commit 6598f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions filezen/simpleScanner/simplescanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ def __moveFilesToTargetFolders(self, rootFiles):
for file in rootFiles:
fileExtension = self.getFileExtension(file)

if fileExtension in extensionsToFolder:
folderType = extensionsToFolder[fileExtension]
else:
folderType = extensionsToFolder["default"]
folderType = extensionsToFolder.get(fileExtension, extensionsToFolder["default"])

completeFolderPath = os.path.join(self.outputPath, folderType)

Expand Down
2 changes: 1 addition & 1 deletion filezen/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Version of Filezen package
VERSION = "1.4.2"
VERSION = "1.4.3"

0 comments on commit 6598f9d

Please sign in to comment.