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

Broken after release on 2019-12-06 #22

Open
weidox opened this issue Dec 6, 2019 · 8 comments
Open

Broken after release on 2019-12-06 #22

weidox opened this issue Dec 6, 2019 · 8 comments

Comments

@weidox
Copy link

weidox commented Dec 6, 2019

Source as just plain dot does not work anymore. Was forced to replace with "**". Not sure if any other formats could be broken.

@sindresorhus
Copy link
Owner

I think this was caused by sindresorhus/cpy@c4014c0.

// @whitecrownclown

@adriankremer
Copy link

adriankremer commented Dec 6, 2019

Don't know if it is the same problem but since today our copyjobs permanently fail with "Cannot copy xxx: the file doesn't exist" by executing npx cpy-cli --parents ../parent-folder/sub-folder folder/sub-folder

@weidox
Copy link
Author

weidox commented Dec 6, 2019

adriankremer - yes it's the same issue. As I was investigating I saw it not working for folders the way you're using but was not sure if it was working before as I was only using dot with --cwd.

@Tarekajaj
Copy link

Copying all files in folder is not working any more
cpy './fonts/*.*' './src/fonts/'
throws the file doesn't exist

@oliverkan
Copy link

Hi all,
is there any update/solution for this issue?

@kevincaradant
Copy link

kevincaradant commented Jan 15, 2020

Hi guys

This libs works well for me ;)

This is my example to clarify this point: cpy src/main/resources/conf/html/* dist/html

Of course the folder dist and html should already exists otherwise do mkdir dist/html to create them ;)

NB: I got your error the file doesn't exist when I don't specify the files that I want using * after src/main/resources/conf/html/, did you forget it ? :)

@oliverkan
Copy link

Hi, I am not sure which operating system you have but in windows it doesn't copy sub-folders. It just copies files which have extensions. When i want to give source parameter without '*' character this time library gives error as 'file not exist'

@kevincaradant
Copy link

kevincaradant commented Jan 15, 2020

@oliverkan ,

I'm using WIndows ;)
src/main/resources/conf/html/* and src/main/resources/conf/html do the same thing normally ;)
If you want take files and subfolders you have to write something like : src/main/resources/conf/html/**/* or src/main/resources/conf/html/**/*.html

And maybe add this following parameter to keep the structure --parents

However it's the first time, that I use this lib and when I used this parameter: --cwd=src, I got the same issue as you and I don't know why yet, maybe it's the issue :)

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

6 participants