sheepy wrote:Meaning if the file is already there, do not ask to overwrite it and just skip it!
Hey Sheepy.
First of all I must admit I don't know C almost at all, but I was trying to achieve exactly the same thing a few days ago.
Here are my results, you might find them useful or as a start point.
1. I took ROX-Filer source code from here:
http://bkhome.org/sources/alphabetical/ ... ed3.tar.gz
I believe it's the latest.
2. Did the following changes to
action.c file:
Line 689:
if (quiet && !ignore_quiet) >>>
if (quiet && ignore_quiet)
Line 2042:
abox = abox_new(_("Mount / Unmount"), quiet); >>>
abox = abox_new(_("Mount / Unmount"), !quiet);
Line 2267:
abox = abox_new(_("Copy"), quiet); >>>
abox = abox_new(_("Copy"), !quiet);
Line 2307:
abox = abox_new(_("Move"), quiet); >>>
abox = abox_new(_("Move"), !quiet);
3. To compile ROX-filed I needed download
shared-mime-info-0.90 (from Slacko 5.3.3 repo).
To compile I simply clicked the
AppRun script.
4. I copied newly created ROX-Filer binary to
/usr/local/apps/ROX-Filer dir and restarted X server.
It seems to work fine, but there's a couple of side effects (and probably more that I'm not aware of):
1. Now every copy/move operation requires confirmation (even if overwriting doesn't occur), but it's enough to click "Quiet" and all will go.
(actually, it's enough to
not change 3 last lines from above to avoid this, but then again there won't be any confirmations at all).
2. During quiet copying there are error messages (see screenshot), but all files are overwritten properly, as far as I've checked...
I _guess_ it's more related to refreshing the GUI than real errors.
I didn't test it extensively; in fact I reverted the original ROX-Filer file, keeping in mind to learn that darn C at last and return to this someday.
But the best if someone more knowledgeable would like to involve, I'm not an expert at all...
EDIT:
BTW, you mean "skip it" as "allow to overwrite" or "skip it" as "not allow"?
I just noticed that I might misunderstood.
EDIT2: "
No-clobber"
Oh yes, I see my mistake, sorry.
Greetings!