This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to manually mark a folder as remote?

Tags: None
(comma "," separated)
Jacob Zhong
Registered Member
Posts
4
Karma
0
OS
I use rclone to manage my files on cloud and I mount rclone remotes at some certain locations ( for example /mnt/gdrive ). Currently when I use dolphin to open the mounted folder, dolphin will try to generate preview for every files, which will draw a lot resource for rclone to download the files. I found that there's an option in Dolphin to skip preview large "remote files", but I don't know how dolphin determine whether a file or a folder is "remote". Is there anyway to mark the mounted location as "remote"? 8-)

This may be related to this post viewtopic.php?f=224&t=159841&p=414392
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS
I don't know a switch or config entry ... I can only speculate what dolphin could do ...

It's easy to recognize a "remote" folder, it the contents are read via KIO (webdav://, sftp://, fish://, ...).

But can dolphin do this, if you mount a file system via SMB or NFS ? Is it smart enough to check if the showing folder is in a path listed in mount tab entries with type cifs, autofs, nfs, ... ?

And then, there are the .directory files. It may exist a key/value that signals dolphin, the folder is remote ...

It's time to dive into the dolphin’s source code ... ;)
Jacob Zhong
Registered Member
Posts
4
Karma
0
OS
raphaelra wrote:I don't know a switch or config entry ... I can only speculate what dolphin could do ...

It's easy to recognize a "remote" folder, it the contents are read via KIO (webdav://, sftp://, fish://, ...).

But can dolphin do this, if you mount a file system via SMB or NFS ? Is it smart enough to check if the showing folder is in a path listed in mount tab entries with type cifs, autofs, nfs, ... ?

And then, there are the .directory files. It may exist a key/value that signals dolphin, the folder is remote ...

It's time to dive into the dolphin’s source code ... ;)


That would be interesting, thanks for suggestions! And also hope that any develeopers can give some hints :)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], lockheed