[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: (not only dolphin): Directory doesn't behave as Queue (FIFO)
From: Thomas_Lübking <thomas.luebking () gmail ! com>
Date: 2013-09-16 14:24:27
Message-ID: c5b3acc9-0ddf-4645-9413-54e504b32147 () gmail ! com
[Download RAW message or body]
On Montag, 16. September 2013 14:44:15 CEST, Frank Reininghaus wrote:
> Moreover, implementing something like that is far less trivial than
> one might think.
Yesno. The "trick" is to only pass leave paths to the KIO::copy() urls parameter and \
resolve dirs to leaves internally by present sort logics.
It's however the far opposite of efficient - just assume there was a network invike - \
and an extreme cornercase, so one should have a dedicated tool (bash script or simple \
Qt application) to do it. Alternatively simply mkdir target/folder and copy the \
contents of the source directory instead of the directory (what will likely be \
sufficient in the described case to get a ripped folder into an mp3 player)
For a huge singleton copy operation to get an entire collection down, 5-10 lines bash \
at max should do.
Sth. along
dir="`realpath $1`"
for file in `ls -1 --sort=BlaFoo` $1; do if [ -d "$file" ]; then $0 "$dir/$file" \
"$2"; else cp "$file" "$2/$1/"; fi
Cheers,
Thomas
> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic