Futilities/human/fcm: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
==About==
==About==
FLC 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.
FLC 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.
Usage:
flc [options] {{arg|list filespec}} {{arg/opt|destination path}}
Options:
* '''-pc''' / '''--precount''': even when doing a copy, do a precount of the number of files first
==Future==
==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:
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 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}} installed and act as a wrapper for that (or emit the necessary command(s) for the user to run or as a script).
* Verify that {{l/htyp|rclone}} installed and act as a wrapper for that (or emit the necessary command(s) for the user to run or as a script).

Revision as of 13:53, 4 September 2022

FLC: File List Copy

About

FLC 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.

Usage:

flc [options] <list filespec> [ <destination path> ]

Options:

  • -pc / --precount: even when doing a copy, do a precount of the number of files 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 rclone installed and act as a wrapper for that (or emit the necessary command(s) for the user to run or as a script).