Revision eedbda4b lib/backend.py

b/lib/backend.py
966 966
  for dir in top_dirs:
967 967
    if os.path.isdir(dir):
968 968
      try:
969
        f_names = os.listdir(dir)
969
        f_names = utils.ListVisibleFiles(dir)
970 970
      except EnvironmentError, err:
971 971
        logger.Error("Can't list the OS directory %s: %s" % (dir,str(err)))
972 972
        break
......
1282 1282

  
1283 1283
  """
1284 1284
  if os.path.isdir(constants.EXPORT_DIR):
1285
    return os.listdir(constants.EXPORT_DIR)
1285
    return utils.ListVisibleFiles(constants.EXPORT_DIR)
1286 1286
  else:
1287 1287
    return []
1288 1288

  
......
1392 1392
    subdir = "%s-%s.d" % (hpath, suffix)
1393 1393
    dir_name = "%s/%s" % (self._BASE_DIR, subdir)
1394 1394
    try:
1395
      dir_contents = os.listdir(dir_name)
1395
      dir_contents = utils.ListVisibleFiles(dir_name)
1396 1396
    except OSError, err:
1397 1397
      # must log
1398 1398
      return rr

Also available in: Unified diff