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

[feature] remove copied files #11

Open
lnicola opened this issue Dec 26, 2019 · 1 comment
Open

[feature] remove copied files #11

lnicola opened this issue Dec 26, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@lnicola
Copy link
Contributor

lnicola commented Dec 26, 2019

Merry Christmas, first of all!

How would you feel about a feature to remove copied files? Alternatively (or, even better, in addition) xcp could support running an external command after one or more files have been copied.

@tarka
Copy link
Owner

tarka commented Dec 28, 2019

I'm not averse to it, but it it would need to handle the (I assume) most common case of moving files within the same filesystem. In this case the fastest and safest method of doing this is to move the file's inode (which is what mv does in this case), which limits most of the advantage of xcp's optimisations. I'd certainly look at patches though.

I'm not sure about running a secondary command; it's an interesting idea, but I think most cases where it would be used would be better handled by a higher level script. I'm happy to be proved wrong though.

@lnicola lnicola closed this as completed Jul 13, 2020
@lnicola lnicola reopened this Oct 21, 2021
@tarka tarka added the enhancement New feature or request label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants