merge directories

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
6.4
Description:

it merges two or more directories into one called "merged". it can copy or move all the files.
it is an answer to the http://www.kde-look.org/content/show.php?content=34879 mockup.
hope you'll find it useful :)

INSTALL:
1. copy merge.desktop to your $KDEHOME/share/apps/konqueror/servicemenus;
your $KDEHOME is most probably /usr, /opt/kde3 or sth else;
2. add merge to your path, e.g. by copying it to /usr/local/bin.
you might need to make it executable (chmod +x merge).
Last changelog:

13 years ago

v0.2:
kdialog
nr of dirs to merge checking
translations (de, es, fr, it, pl, pt)

gohanz

13 years ago

A SlackWare TGz package with SlackBuild Script is Ready to DownLoad!!!

http://www.slacky.it/


http://www.slacky.it/index.php?option=com_remository&Itemid=1&func=fileinfo&filecatid=931&parent=category

Report

C

caminoix

13 years ago

wow, great, thanks :)

Report

Larra

13 years ago

wow, thank you very much!
This should be part of default menus

Report

C

caminoix

13 years ago

you're welcome :)

Report

anytimeIsLunchtime

13 years ago

Hey that's quick! Great! :-D


> into one called "merged"

Would it be be possible to use a pop-up box that ask for the name of the directory that will be created.

With the pop-up, I can fill it in and continue on another task, while the computer happily merges my dirs on the background. For me the merge-task is done, the computer can perform it without me looking at it.

Without the pop-up, I have to remember to return to the merging-task to rename the 'merged'-dir or wait for it (even if it is just a few seconds) to have the merge done. (BTW, what happens with multiple merges in one dir?)

Report

anytimeIsLunchtime

13 years ago

Ah, that was easier than I expected...
N.B. It does not check for existing directories with the same name!


#!/bin/bash

target=`kdialog --inputbox "target directory"`
mkdir $2/$target

for dir in $3
do
cp -r $dir/* $2/$target
done

if [ $1 == "move" ]
then
for dir in $3
do
rm -r $dir/*
rmdir $dir
done
fi

Report

C

caminoix

13 years ago

thanks for the interest and help :)

as to the code, erm, i'm afraid it still needs some work. it actually merged two directories into two other directories :/
i'll take a look at it tomorrow :)

Report

13 years ago

v0.2:
kdialog
nr of dirs to merge checking
translations (de, es, fr, it, pl, pt)

12345678910
product-maker Count:40 Rating: 6.35
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
updated Feb 06 2006
added Feb 05 2006
downloads today
0
page views today 1
System Tags addon