kapitainsky / RcloneBrowser

Simple cross platform GUI for rclone. Supports macOS, GNU/Linux, BSD family and Windows.
https://github.com/kapitainsky/RcloneBrowser
MIT License
2.34k stars 220 forks source link

Extended mount functionality #52

Open caspertone2003 opened 4 years ago

caspertone2003 commented 4 years ago

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

kapitainsky commented 4 years ago

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

On 5 Dec 2019, at 15:17, caspertone2003 notifications@github.com 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.

caspertone2003 commented 4 years ago

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

kapitainsky commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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?

dia3olik commented 4 years ago

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

kapitainsky commented 4 years ago

Tree command has been added in the latest release

caspertone2003 commented 4 years ago

@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

kapitainsky commented 4 years ago

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 commented 4 years ago

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

Anything else you can think of?

Darthagnon commented 4 years ago

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)

kapitainsky commented 4 years ago

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 commented 4 years ago

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).

Darthagnon commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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?

kapitainsky commented 4 years ago

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 commented 4 years ago

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

Darthagnon commented 4 years ago

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.

kapitainsky commented 4 years ago

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.

Darthagnon commented 4 years ago

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:

kapitainsky commented 4 years ago

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.

Darthagnon commented 4 years ago

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).

kapitainsky commented 4 years ago

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 notifications@github.com 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 commented 4 years ago

Slowly getting there:

Screenshot 2020-03-13 at 20 38 42

kapitainsky commented 4 years ago

beta version is ready for testing:

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

caspertone2003 commented 4 years ago

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

kapitainsky commented 4 years ago

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

caspertone2003 commented 4 years ago

Comments left in the other thread - https://github.com/kapitainsky/RcloneBrowser/issues/93

You wrote some comments above that you were not seen the use case of mount. Well, for me it is very useful. For renaming, moving and editing -all manually - many small files. So, I use all the funtionalities of explorer or copycats alternatives.

;-)

kapitainsky commented 4 years ago

Of course we differ in how we use computers:) I am not big fan of mounts indeed.

But the best course of action with RB at the end was to give choice to users. Your post about cache warming let me think that some people can actually make very good use of them. And now I have too much time on my hands - so things are coming.

On 22 Mar 2020, at 01:47, caspertone2003 notifications@github.com wrote:

Comments left in the other thread - experimental build.

You wrote some comments above that you were not seen the use case of mount. Well, for me it is very useful. For renaming, moving and editing -all manually - many small files. So, I use all the funtionalities of explorer or copycats alternatives.

;-)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kapitainsky/RcloneBrowser/issues/52#issuecomment-602134579, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXJHOQK5LDMI4NRSEAHWMLRIVU4XANCNFSM4JV3E6JQ.

caspertone2003 commented 4 years ago

By the way, while dirtree is not my dream, is certainly useful. Could it be much complex to add an export button, exporting the listing in xml? we could use xml browsers to open the file such as http://www.java2s.com/Code/CSharp/GUI-Windows-Form/ReadanXMLDocumentanddisplaythefileasaTree.htm so that it is possible to collapse branches... Who knows, there could even be a library that you could use to show/collapse branches...

Thanks again! We users do not stop to ask.... CT

TimetravelerDD commented 4 years ago

[...]

  • add task option "run automatically" on Rclone Browser start [...] Anything else you can think of?

That would make my dream come true!

two more ideas:

vvpnet commented 1 year ago

Slowly getting there:

Screenshot 2020-03-13 at 20 38 42

Hi. I can't find how to save the mount point automatically? I have version 1.61.1 of Linux.