We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b3479a commit 30420ffCopy full SHA for 30420ff
1 file changed
python2.7/music-organizer.py
@@ -37,6 +37,8 @@
37
help='''Operate in 'artist' mode and copy all songs to the
38
root of the directory and cleanly format the names to
39
be easily typed and navigated in a shell.''')
40
+parser.add_argument('--delete-unrecognized-extensions', action='store_true',
41
+ dest='delete_unrecognized')
42
args = parser.parse_args()
43
44
if args.collection and args.artist:
@@ -126,8 +128,9 @@ def artist(artistDir):
126
128
elif ext == ".pdf":
127
129
pass
130
else:
- print("Error: Unrecognized file extension in '" + filename + "'")
- sys.exit(-42)
131
+ if not args.delete_unrecognized:
132
+ print("Error: Unrecognized file extension in '" + filename + "'")
133
+ sys.exit(-42)
134
135
# Delete all subdirectories.
136
for subdirname in dirnames:
0 commit comments