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 Folders with content #318

Open
TMInnovations opened this issue Apr 10, 2022 · 3 comments
Open

Copy Folders with content #318

TMInnovations opened this issue Apr 10, 2022 · 3 comments

Comments

@TMInnovations
Copy link

TMInnovations commented Apr 10, 2022

Is your feature request related to a problem? Please describe.
Currently I don't find a way to copy files or folders from one nextcloud path to another. I can only find a only move command.

Describe the solution you'd like
A copyFolder and or copyFile command would be great. Alternatively a "best practice copy showcase" based on the current library would be great!

Describe alternatives you've considered
I didn't find alternatives besides downloading and re-uploading (which I haven't tried yet).

Additional context

@hobigo
Copy link
Owner

hobigo commented Apr 10, 2022

Hi Thomas,
you can use the upload / download commands. You need two clients (as you have two nextclouds) and a temporary file system loaction for the files to copy.
Regards

@TMInnovations
Copy link
Author

Copying would happen inside a single nextcloud in my case. What if access to the local filesystem is not allowed (cloud hosted nextcloud)?

@hobigo
Copy link
Owner

hobigo commented Apr 11, 2022

You can get a source file object and get the content. Then you can create a new target file in the target folder and set the content.

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