Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Regression: --exclude '*.*' --rinclude '^one_file$' excludes all files #212

Closed
NV opened this Issue · 10 comments

4 participants

Nikita Vasilyev Rob Smith Matt Domsch ltmitch49
Nikita Vasilyev
NV commented

I want to upload several files, but don’t touch anything else:

s3cmd put --exclude '*.*' --rinclude '^one/file$' --rinclude '^another/file$'

Unfortunately, it doesn’t upload anything in 1.5.0-alpha3. It used to work well in 1.5.0-alpha1.

Rob Smith

I'm having an issue with 1.5.0-beta1 where --exclude '*.*' --include '*.png' matches nothing. I wonder if it's related

Matt Domsch
Owner
Rob Smith

--files-from=<file with list of files to transfer> does work for my usage.

Matt Domsch
Owner

I reviewed the code path for this. --exclude="*" --include="something" is supposed to work. That it's not is indeed a bug that needs further debugging.

ltmitch49

I found that if I commented out "dirs.remove(x)" in "handle_exclude_include_walk" in "FileList.py" the --include option works, hopefully correctly.

Matt Domsch
Owner
Johannes Schickling schickling referenced this issue in wercker/step-s3sync
Closed

Exclude hidden files #2

Matt Domsch
Owner

Please try upstream master branch now. I reworked how excludes and includes are processed (and where). From my testing, doing a --exclude=* --include=*.jpg does indeed work now. To exclude a directory, be sure you have --exclude=somedir/ (trailing forward slash).

Matt Domsch mdomsch closed this
ltmitch49
Matt Domsch
Owner
Matt Domsch
Owner
Piotr Janik pjanik referenced this issue from a commit in concord-consortium/lab-interactives-site
Piotr Janik pjanik Use master branch of s3cmd, change --include / --exclude patterns
Older version had broken processing of exlude and include patterns,
see: s3tools/s3cmd#212
ad981d6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.