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

Skip files matching regular expression does not work #3200

Closed
cyberduck opened this issue May 16, 2009 · 3 comments
Closed

Skip files matching regular expression does not work #3200

cyberduck opened this issue May 16, 2009 · 3 comments

Comments

@cyberduck
Copy link
Collaborator

d842bd3 created the issue

I use a file naming scheme to mark my test files in a website. For example, files that start with !tc_:

!tc_abs_layout.css
!tc_abs_layout.html
!tc_content.css
!tc_intro.html
!tc_rel_layout_CMSMS.html
!tc_rel_layout_ie6_screenshot.html
!tc_rel_layout.css
!tc_rel_layout.html

I do not want these files to be uploaded to the production website, so I have created an exclusion filter in Cyberduck. I know Perl, so the regular expression should not be the problem. I have tried:

.*~\..*|\.DS_Store|\.svn|CVS|^(\!tc_).*|\.psd
.*~\..*|\.DS_Store|\.svn|CVS|^\!tc_.*|\.psd
.*~\..*|\.DS_Store|\.svn|CVS|\!tc_.*|\.psd
.*~\..*|\.DS_Store|\.svn|CVS|!tc_.*|\.psd
.*~\..*|\.DS_Store|\.svn|CVS|!.*|\.psd

The trouble is, they upload.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

If there is no red text in the regular expression you enter in the Preferences, the expression compiles. Also, from what I can see, the regular expression you provide should match the given filenames. The only reason I can see is that the regular expression setting is cached for a file transfer already added to the transfer window. Therefore, when testing, start a new transfer after editing the skip pattern.

@cyberduck
Copy link
Collaborator Author

d842bd3 commented

no red text appears in preferences. Have tried restarting Cyberduck, reconnecting to server. No change.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

It should be noted that the filter does not apply to files uploaded that are not within a directory hierarchy. Meaning that files explicitly choosen for upload are not filtered.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants