When will Storj implement the ability to rename stored files?
Storj does not store files. It storj objects. And it supports renaming objects since forever.
So your question is wrong.
Hello @vv75,
Welcome back!
The Storj Console is not designed to be a primary interface to the network, it’s used for a quick start or simple functions like upload/download/share/preview of few objects, it’s missing a lot of consumer functions, including move and rename.
For that you need to use other tools: as suggested by @arrogantrabbit you can use uplink
mv
or rclone
move
commands or use almost any other tools like Cyberduck, S3 Browser, WinSCP, etc. Or use Object Mount, rclone
mount
, Mountain Duck, etc. and your OS tools (Finder, Explorer, Nautilus, etc.).
I mounted a storj bucket as a network drive with TntDrive. And when I try to rename a storj-hosted file, TntDrive service says in the logs that it got a “not implemented” response from storj at its request.
Mounting ain’t anything storj-specific, it is “s3 compatible” as per TntDrive classification.
Tnt drive is an S3 client. S3 (up to very recently) did not define rename at all. Many tools implement rename as copy+delete, or as nonstandard extension. The fact that your drive mounting software of choice does not underatnd rename only speaks of its [lack of] quality.
You can use other mounting tools, such as cunoFS, and/or rclone, or use native integration instead of S3.
Thanks!
Now what should be explained to TntDrive developers so they could fix that? I plan to forward to them the link to this discussion.
It works with mentioned tools, this one seems not fully s3-compatible. I may say that FileZilla free will not allow to rename too, even if it’s supported by the backend.
Maybe it’s related to
Do they have an option to mount it as FUSE, not the network drive?
Actually aws s3
CLI has mv
command:
NAME
mv -
DESCRIPTION
Moves a local file or S3 object to another location locally or in S3.
See 'aws help' for descriptions of global parameters.
and it works too with Storj.
It shall be sufficeint to tell them “your tool fails to rename files when mounting data over Storj S3 Gateway”.
aws s3 mv
uses CopyObject followed by DeleteObject. Exactly what tntDrive alegedly does not do but should. (AFAIK only Amazon S3 Express One tier supports RenameObject as part of API for certain type of objects, so aws tool can shortcut to use that, but don’t quote me on this, i just stumbled on this recently researching somethign else. )
no fuse there and i have no idea whats that.
network drive is how the volume is presented to windows as.
options: network, removable.
it does not change anything in the logic that tntdrive interacts with storj, only what is seen by the os.
i emailed tntdrive developers and gave them the link to this topic.
I agree, it shall not matter how is the data made available to the os; generally industry moved away from FUSE and other kernel extension-based filesystems towards network mounts from the locally running servers. Everyone, including MountainDuck, and even Google Drive, switched to using NFS or SMB mounts – because that works out of the box with any os and does not require any additional, let alone low level kernel, software. Installing such software is getting increasingly cumbersome in modern OSes, on purpose.
In fact, even rclone has now support for rclone serve nfs ...
and rclone serve smb...
, and even experimental rclone nfsmount
. FUSE is dead for the purposes of use in end-user environments.
I would stronly suggest looking at CunoFS at this point.
Yes, I know. There are some drawback though - as a network drive, there is no caching. So, rclone mount
has two ways to mount - as a network drive and as a removable drive.
In some cases one preferred over another.
On Windows it’s called WinFSP. Or, in the case of this tool - “removable drive”. I do not believe, that they implemented it better than WinFSP. If they tried - then they will be forced to re-implement it.
WinFSP works fine, by the way, and used by rclone and many other mounting software.
okay.
so i just tried to change to “removable drive” and rename a remote file.
gives an error.
when it was a network drive, explorer just hanged.
this is a note more to tntdrive developers than to the storj community, eventually sorry for that, but i want you to know it too.