Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6699192

Browse files
committed
music-organizer: Ignore dotfiles.
1 parent 9db0fb8 commit 6699192

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python2.7/music-organizer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""
1616

1717
import argparse
18+
import glob
1819
import os
1920
import re
2021
import shutil
@@ -194,7 +195,7 @@ def song(filename):
194195

195196

196197
def collection():
197-
for f in os.listdir("."):
198+
for f in glob.glob('*'):
198199
if os.path.isdir(f):
199200
if f != 'iTunes' and f != 'playlists':
200201
artist(f)

0 commit comments

Comments
 (0)