Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

PYDIO FileSystem API for Rename a file or folder #1437

Open
vclsystem opened this issue Oct 3, 2018 · 3 comments
Open

PYDIO FileSystem API for Rename a file or folder #1437

vclsystem opened this issue Oct 3, 2018 · 3 comments

Comments

@vclsystem
Copy link

Hi ,

We are using PYDIO File System V1 . how to rename the file or folder . I tried with below

https://pydio.com/api/myfiles/rename?file=file1.config&filename_new=file2.config

its not working .

Please help me on this.

@vclsystem
Copy link
Author

hi

Please update me

Thanks

@jthabet
Copy link

jthabet commented Oct 4, 2018

Hi,
you can use the cmd.php that is located here <your-pydio>/cmd.php
and use the following command php cmd.php -u=<user> -p=<password> -r=<workspacename> -a=rename --file='/filename' --filename_new='/newfilename'

for your case it would look like this, php cmd.php -u=<user> -p=<password> -r=myfiles -a=rename --file='/file1.config' --filename_new='/file2.config'

@jthabet
Copy link

jthabet commented Oct 4, 2018

hey,
you can also use this http request http://<pydio-uri>/api/<workspace id or alias>/rename/?file=/<targetedfile>&filename_new=<newname>

or

curl --insecure -u <username>:<password> -X POST 'https://<your-pydio>/api/<workspace id or alias>/rename/?file=/<targeted file>&filename_new=<new-name>'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants