Home > fops

fops

Fops is a project mainly written in F# and C#, it's free.

File operations utility

FOPS Small file operations utility.

USAGE fops --file= [-basesrc=] [-basedst=] [-jobid=] fops --copy [options] fops --link [options] fops --delete fops --copyf [options] fops --linkf [options] fops --movef [options] fops --copyd [options] fops --linkd [options] fops --moved [options] fops --deleted

-?, --help Show usage. -f, --file=VALUE Path to the file containing the jobs to run. -d, --delete=VALUE Delete all files that match a wildcard pattern (including read-only!). -D, --deleted=VALUE Delete an entire directory recursively! -c, --copy=VALUE1 VALUE2 Copy files according to a wildcard pattern. -l, --link=VALUE1 VALUE2 Link files according to a wildcard pattern. --copyf=VALUE1 VALUE2 Copy a single file. --linkf=VALUE1 VALUE2 Link a single file. -m, --movef=VALUE1 VALUE2 Rename a file. -C, --copyd=VALUE1 VALUE2 Copy a directory recursively. -L, --linkd=VALUE1 VALUE2 Link a directory recursively. -M, --moved=VALUE1 VALUE2 Rename or move a directory. -F, --force Overwrite any existing files at destination -v, --verbose Display detailed information -b, --basesrc=VALUE Base source directory path. -B, --basedst=VALUE Base destination directory path. -j, --jobid=VALUE The id of a job to run. Omit to run all jobs.

NOTES

  • options: -F, --force -v, --verbose
  • copy dir (copyd) and move dir (moved) work as follows: if the destination path is an existing directory the source directory gets copied/moved inside the destination directory, otherwise the source directory gets copied/moved as the destination directory
  • path: a filesystem path which can be absolute or relative to the basesrc or basedst
  • pattern: a wildcard pattern which can be absolute or relative to the basesrc.
  • the following wildcard characters are supported
    • : matches zero or more characters ? : matches exactly one character
  • directory match works as follows // : matches any directory any level deep /?/ : matches any directory exactly one level deep
  • pattern examples: C:* (matches all files in the root directory) C:** (matches all files in the root directory and all its sub directories any level deep) C:a* (matches all files in 'a' directory) C:a* (matches all files in all sub directories of 'a' that start with letter 'b') C:?f.txt C:a**.txt C:a?c.pd? C:a*?cf?.txt

    JOBS FILE SAMPLE