VFS plugin for mc


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?


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


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


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


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?


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.


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


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


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


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


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.


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


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?