dot_clean in c2p
This commit is contained in:
1 parent
a7005748c7
commit
9a605c2d8a
3 files changed
+12
-9
No files matched your search
@@ -45,6 +45,14 @@ class HTMLStripper(HTMLParser):
|
||||
pass
|
||||
|
||||
|
||||
def dot_clean(filetree):
|
||||
for root, _, files in os.walk(filetree, topdown=False):
|
||||
for name in files:
|
||||
if name.startswith('._') or name == '.DS_Store':
|
||||
if os.path.exists(os.path.join(root, name)):
|
||||
os.remove(os.path.join(root, name))
|
||||
|
||||
|
||||
def getImageFileName(imgfile):
|
||||
name, ext = os.path.splitext(imgfile)
|
||||
ext = ext.lower()
|
||||
|
||||
Reference in new issue
Block a user