RcloneBrowser icon indicating copy to clipboard operation
RcloneBrowser copied to clipboard

Extended mount functionality

Open caspertone2003 opened this issue 5 years ago • 35 comments

Some (more) proposals

a) Directory navigation Using the GUI or mounting gives long time to navigate the tree under Windows 10. I do not know how you approach to this (rclone) issue. Perhaps some configuration could be added. See https://forum.rclone.org/t/how-to-get-full-directory-tree-cached-on-first-mount/12535

b) would be nice to get output as rclone tree does https://rclone.org/commands/rclone_tree/

Thanks for considering

caspertone2003 avatar Dec 05 '19 15:12 caspertone2003

Very interesting… I will try it definitely to see how it works

On 5 Dec 2019, at 15:17, caspertone2003 [email protected] wrote:

Some (more) proposals

a) Directory navigation Using the GUI or mounting gives long time to navigate the tree under Windows 10. I do not know how you approach to this (rclone) issue. Perhaps some configuration could be added. See https://forum.rclone.org/t/how-to-get-full-directory-tree-cached-on-first-mount/12535 https://forum.rclone.org/t/how-to-get-full-directory-tree-cached-on-first-mount/12535 b) would be nice to get output as rclone tree does https://rclone.org/commands/rclone_tree/ https://rclone.org/commands/rclone_tree/ Thanks for considering

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kapitainsky/RcloneBrowser/issues/52?email_source=notifications&email_token=ADXJHOXG6WQMRUO6FNQEWD3QXELP5A5CNFSM4JV3E6J2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H6LI43Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXJHOXLXHEUBAQ5355BXZLQXELP5ANCNFSM4JV3E6JQ.

kapitainsky avatar Dec 05 '19 17:12 kapitainsky

I am struggling with mounts in windows for months... Even tried with MegaCMD but it fails miserably with big files transfers... And I find their sw buggy and stutters from time to time such as

  • https://github.com/meganz/MEGAcmd/issues/203
  • https://github.com/meganz/MEGAcmd/issues/122

caspertone2003 avatar Dec 06 '19 01:12 caspertone2003

regarding mounts - this is big story and there is no one solution good for everyone especially that different options might work different for different remotes. What I can do here is to provide even more flexibility and introduce mounting scripts e.g. you could run your cache seeding script after successful mount.

kapitainsky avatar Dec 06 '19 10:12 kapitainsky

also I don't fully understand why to rely on mounts... It is useful to look around and do some small tasks but will never work for bigger operations e.g. trying to sync 1 million files over mount is designed to fail.

They will never work perfectly. It is just very inefficient way of working with remote object storage in name of convenience. Risk of data being lost or corruption is huge in my opinion. When you use file manager e.g. explorer in windows to perform operations on "fake" filesystem you are using wrong tools. File managers is not aware of real nature of such mounted filesystem and treats it as "local" one. Fuse software tries hard to simulate local filesystem behaviour but it is only virtualization of some kind.

kapitainsky avatar Dec 06 '19 10:12 kapitainsky

for mounting remotes you could maybe have a look at these solutions:

https://github.com/dimitrov-adrian/RcloneTray https://mountainduck.io/

I would prefer Rclone Browser to be a browser:) And hopefully good one. Mounting option is there because it was originally implemented and I did not want to provide less features than original version. Legacy is legacy.

kapitainsky avatar Dec 06 '19 12:12 kapitainsky

I will create wiki page regarding mounts as things like you found for example (https://forum.rclone.org/t/how-to-get-full-directory-tree-cached-on-first-mount/12535) are definitely worth to share

kapitainsky avatar Dec 06 '19 12:12 kapitainsky

b) would be nice to get output as rclone tree does https://rclone.org/commands/rclone_tree/

For tree I am thinking about adding it the same way like size option but only to display directories structure: rclone tree -d

What do you think?

kapitainsky avatar Dec 06 '19 13:12 kapitainsky

Yeah it would be great to have a quick glimpse of the dir structure

dia3olik avatar Dec 07 '19 12:12 dia3olik

Tree command has been added in the latest release

kapitainsky avatar Feb 17 '20 13:02 kapitainsky

@kapitainsky

Hi, long time not here for different reasons - not RcloneBrowser related.

Thanks for 1.8.0, took some time, come with lots of enhancements.

In relation to mount, I see what you mean. But it is convenient as hell ... While feels like a treason to rclone, I am currently using MegaCMD for mounting mega in windows with more or less acceptable results. It is possible to work with mounts using winfsp and rclone using CMD (no need for RCloneTray) but has glitches, and only gets well using dos based explorers (norton commander alike) - not found anyone working with mouse and not in a mad manner. By the way, I imagine you are aware that now rclone is able to handle (safely) unmounts in windows!

DirTree is interesting and useful. I wish not to sound ungrateful... Helps to navigate... I would love to see the main pane of the remote showing the tree, I mean, when one connects to the remote, having all tree displayed and not having to click and wait, and go level by level down of the tree... So that I would be able to directly click in a deep 4 folder and see its contents... perhaps for a future enrichment?

Thanks for all your excellent work with RB!

CT

caspertone2003 avatar Feb 19 '20 22:02 caspertone2003

By the way, I imagine you are aware that now rclone is able to handle (safely) unmounts in windows!

It is supported in RcloneBrowser since version 1.6.0 and actually rclone implemented it because of our requirement - rclone/rclone#3575

DirTree is interesting and useful. I wish not to sound ungrateful... Helps to navigate... I would love to see the main pane of the remote showing the tree, I mean, when one connects to the remote, having all tree displayed and not having to click and wait, and go level by level down of the tree... So that I would be able to directly click in a deep 4 folder and see its contents... perhaps for a future enrichment?

I totally agree with your comment on browsing experience. I like the idea with navigable remote tree. Definitely something I would like to see implemented.

kapitainsky avatar Feb 20 '20 08:02 kapitainsky

Finally I return to this issue. I am going to rewrite mounting code. These are things I plan to include:

  • make it easier for user to choose not used drive letter on Windows
  • allow on Windows mounting remote to directory path
  • add option to save Mount as a task
  • add task option "run automatically" on Rclone Browser start
  • add option to task to run on mount custom script to allow things like cache warming (https://forum.rclone.org/t/how-to-get-full-directory-tree-cached-on-first-mount/12535)

Anything else you can think of?

kapitainsky avatar Mar 12 '20 09:03 kapitainsky

I assume the option to "save Mount as a task" will include creation and removal of said task as well? (e.g. otherwise users would have to go into Services.msc or something to delete the task)

Darthagnon avatar Mar 12 '20 12:03 Darthagnon

It would work the same way as now Download/Upload tasks. You save it as RcloneBrowser task. So you could edit/run/delete it

kapitainsky avatar Mar 12 '20 12:03 kapitainsky

I will not do any OS specific services changes. Idea is you create your Mount Tasks - and if you mark them as "auto start" every time you start RB they will run - so all your mounts will be mounted. Then you can close RB to system tray icon (this is already implemented).

kapitainsky avatar Mar 12 '20 12:03 kapitainsky

That's perfect!

I had forgotten RCloneBrowser's wide OS support, and mistakenly assumed that saving mounts as "tasks" was a reference to Windows background services.

Darthagnon avatar Mar 12 '20 13:03 Darthagnon

Wondering, is it possible for mounted drives to have custom icons? I don't know if it's a limitation of RClone, or my Windows 10 system, or what, but some current mounts have a "blank file" icon.

Apologies if this is beyond the scope of this update

EDIT: e.g. OneDrive Enterprise has a standard drive icon, but Mega.nz has a blank file icon

Darthagnon avatar Mar 12 '20 13:03 Darthagnon

Just noticed that I can't find an un-mount option in the context menu of v1.8.0 - not sure if I've missed something, otherwise could I feature-request it for the update?

  • Un-mount remote command from context menu

Darthagnon avatar Mar 12 '20 13:03 Darthagnon

No custom icons. Mounted remote will be represented by whatever standard "mount" icon your OS is using. Customizing icons is just make it pretty story - unfortunately it would be different work on every OS - too much to do.

kapitainsky avatar Mar 12 '20 13:03 kapitainsky

Just noticed that I can't find an un-mount option in the context menu of v1.8.0 - not sure if I've missed something, otherwise could I feature-request it for the update?

* Un-mount remote command from context menu

it is rclone limitation not rclone browser. you might request it from them. Rclone browser simply runs:

rclone mount remote: Z:

what is happening after - icon, context menu etc. is out of browser scope

kapitainsky avatar Mar 12 '20 13:03 kapitainsky

Fair enough; will do!

EDIT: in #13 it sounds like unmount was already implemented? Here it sounds like a Ctrl+C or hard kill command is handled is handled effectively by RClone, and this page suggests that failsafes are built in: hard unmount fails if the mount is busy.

EDIT2: I just found this. Looks like you've already considered it. My bad.

Darthagnon avatar Mar 12 '20 13:03 Darthagnon

Fair enough; will do!

EDIT: in #13 it sounds like unmount was already implemented? Here it sounds like a Ctrl+C or hard kill command is handled is handled effectively by RClone, and this page suggests that failsafes are built in: hard unmount fails if the mount is busy.

EDIT2: I just found this. Looks like you've already considered it. My bad.

Unmount from within RB - you are asking for right click context menu option in explorer.

At the moment in Windows rclone mounted drive does not have it:

RBScreenshot 2020-03-12 at 13 32 08

when for example mounted network drives have "Disconnect" option:

Screenshot 2020-03-12 at 13 31 45

if this is what you are after you have to talk to rclone people.

kapitainsky avatar Mar 12 '20 13:03 kapitainsky

Oops, my bad phrasing - I wasn't talking about Explorer, I was referring to within RCloneBrowser - when I open a remote and right-click on it, the list of options is:

  • Refresh
  • DirTree
  • Export
  • New Folder
  • Rename
  • Move
  • Delete
  • Mount
  • [UnMount is missing]
  • Stream
  • Upload
  • Download
  • Public Link

Darthagnon avatar Mar 12 '20 13:03 Darthagnon

Oops, my bad phrasing - I wasn't talking about Explorer, I was referring to within RCloneBrowser - when I open a remote and right-click on it, the list of options is:

This is remote content view. Why it should have unmount option? Unmount is not associated with specific remote folder but with mount point - in case of windows with drive letter you mounted resource to.

You can have many mount points pointing to the same resource.

To unmount drive in RB go to jobs and stop mount job.

kapitainsky avatar Mar 12 '20 13:03 kapitainsky

Apologies; I didn't realise I could stop the mount job; that solves my issue! I've just realised there's an [X] button on jobs (didn't see it before, because black on dark gray background, dim screen).

Darthagnon avatar Mar 12 '20 15:03 Darthagnon

All drives are also unmounted when your quit RB.

I the next release I will adjust dark more colours to make things more visible.

On 12 Mar 2020, at 15:52, Darren John de Lima [email protected] wrote:

 Apologies; I didn't realise I could stop the mount job; that solves my issue! I've just realised there's an [X] button on jobs (didn't see it before, because black on dark gray background, dim screen).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

kapitainsky avatar Mar 12 '20 17:03 kapitainsky

Slowly getting there:

Screenshot 2020-03-13 at 20 38 42

kapitainsky avatar Mar 13 '20 20:03 kapitainsky

beta version is ready for testing:

https://github.com/kapitainsky/RcloneBrowser/issues/93#issue-583234487

kapitainsky avatar Mar 17 '20 19:03 kapitainsky

RB is but will be more in my paradise ... I am short of time - to much covid-19 work / will try to test beta over the weekend. Wish you all are in good health Thanks CT

caspertone2003 avatar Mar 20 '20 23:03 caspertone2003

This work is done thanks to covid-19... As I can't do other things. I will call it "pandemic edition". You will see that it is not only mount that changes:)

And please use this thread for any comments you might have re mounting:

https://github.com/kapitainsky/RcloneBrowser/issues/93#issue-583234487

kapitainsky avatar Mar 21 '20 06:03 kapitainsky