Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Not matching more than one level of directory structure #8

Closed
tyilo opened this issue Aug 27, 2014 · 0 comments
Closed

Not matching more than one level of directory structure #8

tyilo opened this issue Aug 27, 2014 · 0 comments

Comments

@tyilo
Copy link
Contributor

tyilo commented Aug 27, 2014

Given the following test case:

cd ~/Dropbox
mkdir test
cd test
echo '*' > .dbignore
mkdir -p a/b/c
touch a/b/c/d.txt

You would expect a/b/c/d.txt not to be synced as it's matched by * (or at least the a folder is, which should then not be included).

The following text appears in ~/dbignore_log:

Ignore on /Users/Tyilo/Dropbox/test/a/b/c
 is not ignore file
  nearest ignore file is /Users/Tyilo/Dropbox/test
    /Users/Tyilo/Dropbox/test/* does not match
Ignore on /Users/Tyilo/Dropbox/test/a/b
 is not ignore file
  nearest ignore file is /Users/Tyilo/Dropbox/test
    /Users/Tyilo/Dropbox/test/* does not match
Ignore on /Users/Tyilo/Dropbox
 is not ignore file
  no ignore file found
Ignore on /Users/Tyilo/Dropbox/test/.dbignore
  is ignore file
Ignore on /Users/Tyilo/Dropbox/test
 is not ignore file
  nearest ignore file is /Users/Tyilo/Dropbox/test
    /Users/Tyilo/Dropbox/test/* does not match
Ignore on /Users/Tyilo/Dropbox/test/a
 is not ignore file
  nearest ignore file is /Users/Tyilo/Dropbox/test
    /Users/Tyilo/Dropbox/test/* matches!
Ignore on /Users/Tyilo/Dropbox/test/a/b/c/d.txt
 is not ignore file
  nearest ignore file is /Users/Tyilo/Dropbox/test
    /Users/Tyilo/Dropbox/test/* does not match
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant