Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support wildcards for the tasks file-delete or file-copy #482

Closed
Seddryck opened this issue May 23, 2019 · 2 comments
Closed

Support wildcards for the tasks file-delete or file-copy #482

Seddryck opened this issue May 23, 2019 · 2 comments

Comments

@Seddryck
Copy link
Owner

Seddryck commented May 23, 2019

It would be great to support wildcards into these two tasks (copy and delete).

The following command will delete all the files for which the filename is starting by CRDS_FTP_FTP_ and having an extension .csv.

<cleanup>
   <file-delete-pattern path="U:\Data Quality Checks\" pattern="CRDS_FTP_FTP_*.csv"/>
</cleanup>

The following command will delete all the files with an extension .csv or an extension .txt

<cleanup>
   <file-delete-extension path="U:\Data Quality Checks\" extension=".csv;.txt"/>
</cleanup>

Comparable methods are supported to copy files: file-copy-pattern and file-copy-extension.

@Seddryck
Copy link
Owner Author

An alpha version is available at https://ci.appveyor.com/project/Seddryck/nbi/builds/24907589/artifacts
1.21.0-alpha.1+45

@Seddryck
Copy link
Owner Author

Beta available at https://ci.appveyor.com/project/Seddryck/nbi/builds/24917349/artifacts or upgrade package via Update-Package NBi.Framework -version 1.21.0-beta0047.

Documentation updated.

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

No branches or pull requests

1 participant