VFS plugin for mc


#1

can someone with better knowledge in perl than me make a vfs plugin to visualize remotes in mc?

will it be better that copying to mount directories?


#2

Did you try rclone ncdu that is quite a good visualisation tool.


#3

it is not for visualization it is for management (long copy and move tasks)


#4

I don’t think I understand your question. Can you explain more please?


#5

have you used mc sometime? is a filexplorer for changing over folders by ncurses.

So you can copy from one tab to another. I would like to do this without having to mount the folder. and in background do the copy task (if it is possible with %). (there are systems that dont support fuse)

In one side the / in the other the folders read in .rclone.conf, and if i click in crypted: the folder goes to another one that lists the files inside, and if i go over the folder i can move and see what it has. And if move from this to / the file is move in background doing rclone move. instead of cp over filesystem.

Would this be too slow?


#6

I haven’t used it for a very long time, but I know what you mean. The rclone ncdu interface is a bit like one half of the mc interface I think.

So are you thinking there should be an rclone mc command which would implement this? I have thought about this in the past.

It would probably work quite well. Using rclone move is more efficient that using cp in the filesystem and more reliable too.


#7

I am thinking in Mc plugin that calls rclone to do this


#8

I can’t find the homepage or source for mc - do you know where it is?


#9

I believe its here unless I am mistaken about what mc is referring to.


#10

this is what i am asking about. they are in c, but i know it would be easy to do them in perl or perhaps go?

more utils in this directory /usr/lib/mc/extfs.d


#11

I see - thanks.

I see the VFS plugins written in C… I think you’d probably have to write new plugins in C. Maybe a shim plugin could be written which then called external functions (eg rclone) to do its work. It is probably quite a lot of work though.


#12

apt install mc in your linux system and look into this file

/usr/lib/mc/extfs.d/uzip it is perl no? i think it wont be so difficult to make a plugin … if it is in c it would be as you say


#13

That looks like the thing! There is even a hepful README

So what we are talking about is writing an extfs plugin for mc…

I think this could probably be written as a shell/perl/python script quite easily.

Or it could be a new rclone command say rclone mcplugin which you call with the parameters for the plugin script.

Anyone fancy having a go?