def get_stored_files(): stored_list = [] for fname in os.listdir(GLSettings.static_path): filepath = os.path.join(GLSettings.static_path, fname) if os.path.isfile(filepath): statinfo = os.stat(filepath) stored_list.append(get_description_by_stat(statinfo, fname)) return stored_list
def get_stored_files(): stored_list = [] storedfiles = os.listdir(GLSettings.static_path) for fname in storedfiles: filepath = os.path.join(GLSettings.static_path, fname) if os.path.isfile(filepath) and not reserved_file_check(fname): statinfo = os.stat(filepath) stored_list.append(get_description_by_stat(statinfo, fname)) return stored_list
def get_stored_files(): stored_list = [] storedfiles = os.listdir(GLSetting.static_path) for fname in storedfiles: filepath = os.path.join(GLSetting.static_path, fname) if os.path.isfile(filepath) and not reserved_file_check(fname): statinfo = os.stat(filepath) stored_list.append(get_description_by_stat(statinfo, fname)) return stored_list