You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for glob and regex wildcards in fscopy and link actions.
Currently, the fs config key-value pair
/dst/<foo>: /src/foo.*
would be interpreted, when fed to uw fs copy, to mean:
Copy the file literally named foo.* in the /src/ directory as a file named <foo> in the /dst/ directory.
With support for a !glob UW YAML tag, key-value pair
/dst/<foo>: !glob /src/foo.*
would be interpreted to mean
Find all files in the /src/ directory matching glob pattern foo.* and copy them, retaining their names, to the directory /dst/.
Note that the <foo> element of the destination path is discarded. It is just a placeholder and can be anything, but is necessary to support multiple key-value pairs targeting the /dst/ directory, since keys must be unique.
Source paths tagged !regex would receive the same treatment, except that the patterns would be treated as regular expressions.
The uw fs link action would behave similarly, but create symlinks instead of copies.
AC
Implement the tags.
Appropriate (possible debug-level) messages are logged.
Add/update unit tests.
Update docs, both the UW YAML tags page and the fs mode page.
Update Jupyter fs notebook with examples.
The text was updated successfully, but these errors were encountered:
Description
Add support for glob and regex wildcards in
fs
copy
andlink
actions.Currently, the
fs
config key-value pairwould be interpreted, when fed to
uw fs copy
, to mean:With support for a
!glob
UW YAML tag, key-value pairwould be interpreted to mean
Note that the
<foo>
element of the destination path is discarded. It is just a placeholder and can be anything, but is necessary to support multiple key-value pairs targeting the/dst/
directory, since keys must be unique.Source paths tagged
!regex
would receive the same treatment, except that the patterns would be treated as regular expressions.The
uw fs link
action would behave similarly, but create symlinks instead of copies.AC
fs
mode page.fs
notebook with examples.The text was updated successfully, but these errors were encountered: