trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: August 2018

Re: [trinity-users] Is there a way to copy weird named files form Konqueror?

From: Steven D'Aprano <steve@...>
Date: Wed, 15 Aug 2018 10:18:51 +1000
On Tue, Aug 14, 2018 at 08:49:50PM +0200, Thierry de Coulon wrote:

[...]
> All these files have names as:
> 
> Albinoni, Tomaso - 01 - Concerto No. 1 for Violin in B flat major, Op. 9%2F1: 
> 1. Allegro.ogg
> 
> And konqueror does not manage to copy them.

How are you trying to copy them? What steps do you take and what happens 
when you try it?

Under Linux, I see no reason why you can't copy that file. I created a 
test file like this in the shell (bash):

    touch "Albinoni concerto%2F1:1. Allegro.ogg"


opened my home directory in Konquorer, single-clicked on the file, typed 
Ctrl-C to copy, moved to another directory and typed Ctrl-V to paste, 
and the file copied fine. Unless there's a bug in your version of Konq 
which mine doesn't have, it should be able to deal with file names 
containing spaces, colons and percent signs easily.

If that doesn't work, do you get an explicit error message?

If so, try copying the files using bash. Open a terminal, and cd to the 
directory where the CD is mounted. I don't know what that will be on 
your system, but it could be something like this:

    cd /media/DISK

say. You could try listing the contents of /media or /mnt to find out 
for sure where the CD is mounted.

Once you have cd'ed into the right place, try viewing the files 
to ensure they are real files:

    ls -lh *.ogg


Assuming they aren't all zero-length, check that they're readable:

    hexdump Albinoni*1.\ Allegro.ogg | less

ought to do it. If you get a screen full of hex codes like this:

    0166bd0 8db8 6716 e0bd 9243 4775 6eb0 9f2c a246
    0166be0 c276 8580 d85f 987e 585c fa07 bfe8 4814
    0166bf0 b59a 401d 8668 830a 5b35 e56c 670a 27bf
    0166c00 53a5 a55b 563b 78de b3c7 69bc 1600 83b7

it looks good. Hit the Q key to exit and try copying the files to a new 
folder in your home directory:

    mkdir ~/Albinoni
    cp *.ogg ~/Albinoni

Do the files copy now? If not, what's the error message?



-- 
Steve