Futilities/human/fcm: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
m (Woozle moved page Futilities/human/fcc to Futilities/human/fcm without leaving a redirect: changing what this operates on)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{fmt/title|FCC: File Collection Copy}}
{{fmt/title|FCM: File Collection Merge}}
==About==
==About==
FCC takes a simple plaintext list of filespecs and copies the named files to a destination folder. If a source folder-path is given, the specs are treated as relative to that; otherwise, they are treated as absolute.
'''FCM''' looks at {{l/same/lc|FIC}} output and performs any of several operations on the files listed there -- generally with the idea of merging one file tree into another and eliminating duplicate files.


Usage:
Usage:
  fcc [options] {{arg|list filespec}} {{opt|{{arg|destination path}} {{arg/opt|source path}}}}
  fcm [options] {{arg|index filespec}} {{arg|destination folder}}


Options:
Options:
* '''-pc''' / '''--precount''': even when doing a copy, do a precount of the number of files first
* '''-pc''' / '''--precount''': even when doing a copy, do a precount of the number of files to act on first
==Future==
It will probably be useful to add support for remote protocols, starting with WebDAV, to make this part of a Nextcloud-client replacement. There are at least two minimal-coding ways to do this:
* Verify that davfs is installed, mount the necessary share (or emit the required command, for the user to run), and read/write to that.
* Verify that {{l/htyp|rclone}} is installed and act as a wrapper for that (or emit the necessary command(s) for the user to run or as a script).

Latest revision as of 19:35, 7 October 2022

FCM: File Collection Merge

About

FCM looks at FIC output and performs any of several operations on the files listed there -- generally with the idea of merging one file tree into another and eliminating duplicate files.

Usage:

fcm [options] <index filespec> <destination folder>

Options:

  • -pc / --precount: even when doing a copy, do a precount of the number of files to act on first