src/toil_lib/files.py
def __forall_files(file_paths, output_dir, op):
    """
    Applies a function to a set of files and an output directory.

    :param str output_dir: Output directory
    :param list[str] file_paths: Absolute file paths to move
    """
    for file_path in file_paths:
        if not file_path.startswith('/'):
            raise ValueError('Path provided (%s) is relative not absolute.' % file_path)
        dest = os.path.join(output_dir, os.path.basename(file_path))
        op(file_path, dest)
def __forall_files(file_paths, output_dir, op):
    for file_path in file_paths:
        if not file_path.startswith('/'):
            raise ValueError('Path provided (%s) is relative not absolute.' % file_path)
        dest = os.path.join(output_dir, os.path.basename(file_path))
        op(file_path, dest)
def __forall_files ( file_paths , output_dir , op ) : for file_path in file_paths : if not file_path . startswith ( '/' ) : raise ValueError ( 'Path provided (%s) is relative not absolute.' % file_path ) dest = os . path . join ( output_dir , os . path . basename ( file_path ) ) op ( file_path , dest )
Applies a function to a set of files and an output directory.

    :param str output_dir: Output directory
    :param list[str] file_paths: Absolute file paths to move
Applies a function to a set of files and an output directory .