
merge directories
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
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).
14 years ago
v0.2:
kdialog
nr of dirs to merge checking
translations (de, es, fr, it, pl, pt)
14 years ago
v0.2:
kdialog
nr of dirs to merge checking
translations (de, es, fr, it, pl, pt)
gohanz
14 years ago
http://www.slacky.it/
http://www.slacky.it/index.php?option=com_remository&Itemid=1&func=fileinfo&filecatid=931&parent=category
Report
caminoix
14 years ago
Report
Larra
14 years ago
This should be part of default menus
Report
caminoix
14 years ago
Report
anytimeIsLunchtime
14 years ago
> 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
14 years ago
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
caminoix
14 years ago
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