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

Ignore file to delete #129

Open
a-tonchev opened this issue Apr 12, 2021 · 5 comments
Open

Ignore file to delete #129

a-tonchev opened this issue Apr 12, 2021 · 5 comments

Comments

@a-tonchev
Copy link

Is there a possibility to ignore a file in destination directory while deleting?

I would like to empty the destination directory, but to keep only one file (e.g. the .htaccess file), is this possible?

Thanks!

@simonh1000
Copy link
Owner

simonh1000 commented Apr 13, 2021

I'm afraid not. In my case the variable - compiled assets - are in directories, while at the top level are some pretty constant .php files, so I don't face this. If you can think of a simple solution then I would accept a PR, but do discuss first to avoid problems at review

@a-tonchev
Copy link
Author

a-tonchev commented Apr 13, 2021

@simonh1000 Okay, I just created a pull request for it.

#130

I also tested it - it works fine. It is very simple, of course if you have better Idea I would fix or remove my PR

@a-tonchev
Copy link
Author

@simonh1000 did you manage to take a look into it?

Thanks

@vincentsels
Copy link

vincentsels commented Dec 20, 2021

Would also be very interested in this feature! (exclude files & folders)

@a-tonchev
Copy link
Author

a-tonchev commented May 11, 2023

I just create clean new Pull Request, that can ignore whole directories or just files

@simonh1000 can you check it?

#155

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

3 participants