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
5 .0
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:

14 years ago

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

gohanz

14 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

14 years ago

wow, great, thanks :)

Report

Larra

14 years ago

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

Report

C

caminoix

14 years ago

you're welcome :)

Report

anytimeIsLunchtime

14 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

14 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

14 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

14 years ago

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

12345678910
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
updated Feb 06 2006
added Feb 05 2006
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2
System Tags addon