<reponame>coulsonzero/webProject<filename>src/python/removeFile.py<gh_stars>0
import os

def removeFile(f, fp):        
    if f.startswith("._"):
        # print(fp)
        os.remove(fp)
    print("Remove files successfully !")

def getAllFileName(path):
    if not os.path.isdir(path):
        print("note found 404")
    for filename in os.listdir(path):
        filepath = os.path.join(path, filename)
        if os.path.isdir(filepath):
            getAllFileName(filepath)
        removeFile(filename, filepath)



if __name__ == '__main__':
    path = "D:\\gitwork\\MyProjects\\webProjects\\src\\web\\responsive-web\\web-myHomepage-v2.0"
    getAllFileName(path)
