Skip to content

Cannot grab a single file #588

Closed

Description

@hiker

For MONC, it would be preferable to copy a single (source) file from the root directory (to avoid a long list of directories to exclude). Unfortunately, Fab cannot run grab_folder on a single file, since the underlying rsync command adds a / add the end of the source (to avoid creating an unnecessary directory layer).

Suggested approach:

  1. Only add / in rsync if the source is indeed a directory.
  2. Change the name from grab_folder to (e.g.) grab_files (or we could add a separate 'grab_file`, but that feels like unnecessary code duplication), to better indicate that this can be used for directories and file(s) . Backwards compatibility should be maintained (with a deprecation warning)

Activity

  1. added
    enhancement
    in progress
    on Aug 12, 2026
  2. added 3 commits that reference this issue on Aug 12, 2026
  3. linked a pull request that will close this issueSingle file Rsync #592on Aug 20, 2026
  4. MatthewHambley commented on Aug 20, 2026

    @MatthewHambley
    Collaborator

    Closed by #592

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementin progress

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions