roadlabs / alt-f

Automatically exported from code.google.com/p/alt-f
0 stars 1 forks source link

The CopyDir feature will allow you to copy a folder tree to a destination folder within itself #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a folder somewhere called "tmp1"
2. Create a folder called "tmp2" directly inside "tmp1"
3. Navigate to "tmp1" and select the "CopyDir" feature
4. Navigate to "tmp2" and select the "PasteDir" feature

What is the expected output? What do you see instead?
I would expect to see an error telling me that I cannot choose a destination 
folder that is a child/descendant of the source folder, as both Windows and OSX 
(and probably most OSes) do. Instead, some sort of message (possibly an error?) 
flashes up too quickly to read, and I end up with the folder structure nested 
within itself.

Interestingly enough, the copy operation stops after nesting the source 
structure once - so for a source tree that contains 2 folders, the destination 
will have 4, and so on.

I copied the "tmp1" folder from this structure into the "tmp2" folder:

/mnt/sda2/tmp1/tmp2

The result was this:

/mnt/sda2/tmp1/tmp2/tmp1/tmp2

What Alt-F version are you using? Have you flashed it?
0.1RC2, Yes

What is the box hardware revision level? A1, B1 or C1? (look at the label at 
the box bottom)
A1 (it works very nicely, btw)

What is your disk configuration? Standard, RAID (what level)...
2x 2TB HDDs, operating independently.

What operating system are you using on your computer? Using what browser?
OSX 10.6.8, using Chrome 19.0.1049.3 dev stream

Please provide any additional information below.

Original issue reported on code.google.com by d...@coedit.co.uk on 26 Feb 2012 at 7:06

GoogleCodeExporter commented 9 years ago
Actually you can do it, and it works fine, as it is done non-recursively (using 
find/cpio).

Doing a move (Cut/Paste) has problems, and you get an error message.

Or is there something that I'm not considering?

Original comment by whoami.j...@gmail.com on 29 Feb 2012 at 6:14

GoogleCodeExporter commented 9 years ago
Nope - you've got me there: it does appear to be valid. I guess I've been 
conditioned by all the OSes with pretty UIs over the years to expect things 
like this to fail. I've learned something new today :-)

Original comment by d...@coedit.co.uk on 1 Mar 2012 at 5:24

GoogleCodeExporter commented 9 years ago

Original comment by whoami.j...@gmail.com on 2 Mar 2012 at 12:41