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

Copy directory non recursively #61

Open
jbd opened this issue Nov 22, 2024 · 0 comments
Open

Copy directory non recursively #61

jbd opened this issue Nov 22, 2024 · 0 comments

Comments

@jbd
Copy link

jbd commented Nov 22, 2024

Hello,

For a lot a bad reasons beyond of my control, I have to deal (sometimes) with single directory with a lot files (millions) at the same level.

Right now, xcp has to use the -r/--recursive option when the source is a directory:

Error: Invalid source: Source is directory and --recursive not specified.

I'd like to use xcp to copy the content of this directory non-recursively. xcp would only copy files (and create empty directories ?).

It looks like xcp could leverage the min_depth/max_depth function of Walkdir builder to allow non recursive directory copy.

Sorry this is really an RFE without an associated pull request, but my rust skills are non-existent at the moment.

Thank you for this project. This is a fantastic contribution to the space of data movement.

Jean-Baptiste

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

1 participant