Change file path on filestore because of a rename in physical storage
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
I have my complete FOOBAR collection in filestore.
Now I want, in my disk to rename a folder containing 1000000 TB of data.
Just a (folder or file) rename.
How filestore handle this EFFICIENTLY?
If we talk about torrents, filestore is the way torrents work.
EVERY torrent client has a "Set data location".
Because data moved often. This is the case.
So, I propose
ipfs filestore mv [-r] old_path new_path
-r includes all children folders and files (implies that old_path is a path to a directory).
No checks for hashes (if someone runs this command implies that he knows what he does).
Others propose add --nocopy with the same content from another location to replace old location.
This, I believe is wrong because new content must be hashed again. No. Just rename underling files.
I see, file paths stored in LevelDB databases.
So, it is easy to implement an additional rename operation (I believe).
Contributor guide
Assessment
This issue has not been assessed yet.