build/buildutils/checkemptydirectories.py
changeset 80 d6dafc5d983f
parent 72 1f0034e370aa
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
    22 def main():
    22 def main():
    23 
    23 
    24     def visitFun(arg, dirname, names):
    24     def visitFun(arg, dirname, names):
    25 
    25 
    26         # Skip SVN directories
    26         # Skip SVN directories
    27         if dirname.find("\\.svn") != -1:
    27         if dirname.endswith(".svn"):
       
    28             names[:] = []
    28             return
    29             return
    29         
    30         
    30         # Check if the directory is empty (except for the .svn subdirectory)
    31         # Check if the directory is empty (except for the .svn subdirectory)
    31         if len(names) == 0 or (len(names) == 1 and names[0] == ".svn"):
    32         if len(names) == 0 or (len(names) == 1 and names[0] == ".svn"):
    32             print dirname
    33             print dirname