src/clean_xrays.py
def find_files(path):
    '''Recursively walks input directory and find all files within subdirectories.
    Arguments:
        path: Path to the input directory.
    Returns:
        all_files: All files as a path with corresponding subdirectories.
    '''
    all_files = []
    if os.path.isdir(path):
        subdirs = os.listdir(path)
        for subdir in subdirs:
            # recursively check next available directory until a file is found
            all_files += find_files(path+'/'+subdir)
        return all_files
    else:
        return [path]
Recursively walks input directory and find all files within subdirectories.
    Arguments:
        path: Path to the input directory.
    Returns:
        all_files: All files as a path with corresponding subdirectories.
    
Recursively walks input directory and find all files within subdirectories.
Recursively walks input directory and find all files within subdirectories .
def find_files(path):
    all_files = []
    if os.path.isdir(path):
        subdirs = os.listdir(path)
        for subdir in subdirs:
            all_files += find_files(path+'/'+subdir)
        return all_files
    else:
        return [path]
def find_files ( path ) : all_files = [ ] if os . path . isdir ( path ) : subdirs = os . listdir ( path ) for subdir in subdirs : all_files += find_files ( path + '/' + subdir ) return all_files else : return [ path ]
Recursively walks input directory and find all files within subdirectories.
Recursively walks input directory and find all files within subdirectories .
'''Recursively walks input directory and find all files within subdirectories.
    Arguments:
        path: Path to the input directory.
    Returns:
        all_files: All files as a path with corresponding subdirectories.
    ''' # recursively check next available directory until a file is found
All files as a path with corresponding subdirectories.
All files as a path with corresponding subdirectories .
all_files
path
Path to the input directory.
Path to the input directory .