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

rename folder not working #1234

Closed
boddumanohar opened this issue Sep 23, 2023 · 1 comment · Fixed by #1230
Closed

rename folder not working #1234

boddumanohar opened this issue Sep 23, 2023 · 1 comment · Fixed by #1230
Assignees

Comments

@boddumanohar
Copy link
Contributor

Generally, to rename folders we use:

zbox rename --allocation $alloc --remotepath /folder1 --destname /folder2

but the above command results in the error:

Object to rename is not a file use move instead

when I use move command, it actually moves my code folder the destination folder:

zbox move --allocation $alloc --remotepath /folder1/ --destpath /folder2/
zbox list --allocation $alloc --remotepath /folder2 

output:

  TYPE |  NAME   |       PATH       |  SIZE  | NUM BLOCKS | ACTUAL SIZE | ACTUAL NUM BLOCKS |                           LOOKUP HASH                            | IS ENCRYPTED
-------+---------+------------------+--------+------------+-------------+-------------------+------------------------------------------------------------------+---------------
  d    | shared3 | /folder2/folder | 621558 |         10 |      621558 |                10 | 09086ef348c13decc4a826409657b493d23ec78cc2c32257e67178a7e4c5813d |

more context: https://0chain.slack.com/archives/G014PQ61WNT/p1695424694449729?thread_ts=1695186972.851899&cid=G014PQ61WNT

@boddumanohar
Copy link
Contributor Author

@Hitenjain14 can you please take a look.

@boddumanohar boddumanohar linked a pull request Sep 23, 2023 that will close this issue
3 tasks
@boddumanohar boddumanohar mentioned this issue Sep 23, 2023
3 tasks
@dabasov dabasov closed this as completed Sep 25, 2023
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

Successfully merging a pull request may close this issue.

3 participants