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

XML file paths are ignored #2

Open
novumcoder opened this issue Sep 8, 2017 · 6 comments
Open

XML file paths are ignored #2

novumcoder opened this issue Sep 8, 2017 · 6 comments

Comments

@novumcoder
Copy link

novumcoder commented Sep 8, 2017

Its working fine, except for XML files. For all other files it keeps the relative path from source folder and copies over. But XML in any sub-dir is being copied to root target dir only.

Command used: copy-and-watch --watch /mypath/**/*.{aspx,Master,asax,css,js,png,jpg,xml,gif,otf,eot,ttf,woff} /home/web/targetdir

If i run this command with *.{xml} only it sync the xml files with proper path. But not in combination with other suffixes.

@zont
Copy link
Owner

zont commented Sep 13, 2017

Cannot reproduce.

Can you add more description:

  • project structure
  • actual result and expected result

@novumcoder
Copy link
Author

novumcoder commented Sep 14, 2017

sure. just uploaded a zip file containing source and target folder.
now starting from root folder seeing both folders, i run the following:

copy-and-watch --watch source/**/*.{xml,cs} target

Then it does this:

`[COPY] source/xml_files/blabla_file.xml to target/blabla_file.xml

[COPY] source/test.cs to target/test.cs

[WATCH] source/xml_files/blabla_file.xml

[WATCH] source/**/*.cs
`
So it ignores the xml_files folder NOT copying it to target, instead its just copying the xml file in there into target folder only. zip file attached.

I just want to sync those files into target looking only for those suffixes i defined. am i doing something wrong?

test.zip

@zont
Copy link
Owner

zont commented Sep 14, 2017

Tested Win:
image

Tested linux:
image

Second COPY of xml is after file change.

@zont
Copy link
Owner

zont commented Sep 14, 2017

I cannot reproduce it.
Please try to reproduce it on another PC

@novumcoder
Copy link
Author

ok, tested on my windows 7 machine, working fine. but this time i used LTS version of nodejs, while on my lubunutu installation i used latest v8 of nodejs. could that be the issue?

@novumcoder
Copy link
Author

not sure if my downgrading was correct. i just cleaned cached of npm with -f then installed 6.11.3 with n.
then removed copy-and-watch, then reinstalled, then retried, same problem on lubuntu.

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

No branches or pull requests

2 participants