[tahoe-lafs-trac-stream] [tahoe-lafs] #712: tahoe cp flattens directories
tahoe-lafs
trac at tahoe-lafs.org
Mon Nov 26 00:16:50 UTC 2012
#712: tahoe cp flattens directories
-----------------------------------+--------------------------------
Reporter: zooko | Owner: warner
Type: defect | Status: new
Priority: major | Milestone: 1.11.0
Component: code-frontend-cli | Version: 1.4.1
Resolution: | Keywords: tahoe-cp usability
Launchpad Bug: |
-----------------------------------+--------------------------------
Changes (by davidsarah):
* milestone: eventually => 1.11.0
Old description:
> I had two entries in my local filesystem, a file named "22brain.html" and
> a directory named "22brain_files", which was full of other files and
> subdirectories. I ran {{tahoe cp 22brain* tahoe:22brain/}}}. Afterward
> I expected to find {{{tahoe:22brain/22brain.html}}} and
> {{{tahoe:22brain/22brain_files/}}}, but instead I found the ''contents''
> of the local "22brain_files" directory copied directly into the
> {{{tahoe:22brain}}} directory. This breaks all the links in the
> "22brain.html" file and means I need to delete this directory and try
> again.
New description:
I had two entries in my local filesystem, a file named "22brain.html" and
a directory named "22brain_files", which was full of other files and
subdirectories. I ran {{tahoe cp 22brain* tahoe:22brain/}}}. Afterward I
expected to find {{{tahoe:22brain/22brain.html}}} and
{{{tahoe:22brain/22brain_files/}}}, but instead I found the ''contents''
of the local "22brain_files" directory copied directly into the
{{{tahoe:22brain}}} directory. This breaks all the links in the
"22brain.html" file and means I need to delete this directory and try
again.
--
Comment:
zooko forgot he had filed this ticket :-) and wrote in the duplicate
ticket #1854 :
> {{{
> $ ls -al
> total 1740
> drwxrwxr-x 3 zooko zooko 4096 Nov 11 04:56 .
> drwxrwxr-x 3 zooko zooko 4096 Nov 11 04:52 ..
> -rw-rw-r-- 1 zooko zooko 80898 Aug 21 19:23
276a292eebb111e186fe22000a1c9ebd_7.jpg
> -rw-rw-r-- 1 zooko zooko 96881 Nov 10 03:48 causes-of-death-2010.png
> -rw-rw-r-- 1 zooko zooko 20450 Nov 11 04:52 hackers-2012-slides.html
> -rw-rw-r-- 1 zooko zooko 11458 Nov 10 14:57 hackers-2012-slides.rst
> -rw-rw-r-- 1 zooko zooko 948821 Nov 10 03:46
Murphy-2012-Deaths__Preliminary_Data_For_2010.pdf
> -rw-rw-r-- 1 zooko zooko 113191 Nov 10 11:51 Neal-2008-Table4.png
> -rw-rw-r-- 1 zooko zooko 117367 Nov 10 10:48
Neal-2008-The_ketogenic_diet_for_the_treatment_of_childhood_epilepsy__a_randomised_controlled_trial.pdf
> -rw-rw-r-- 1 zooko zooko 148251 Nov 10 10:37
Neal-2010-Efficacy_Of_Dietary_Treatments_For_Epilepsy.pdf
> -rw-rw-r-- 1 zooko zooko 219436 Nov 10 10:42 Neal-2010-Table2.png
> drwxrwxr-x 4 zooko zooko 4096 Nov 10 14:04 ui
> $ time tahoe cp -r *
URI:DIR2-MDMF:qda3lf42dkxclwbuh5h7qwygne:obhqprvm6hafvarzzssrawgazx6p6tgopi4fslirhelg7xqyfr6a:
> Success: files copied
>
> real 0m26.085s
> user 0m1.003s
> sys 0m0.140s
> HACK zompu:~/book/gitworld/presentations/hackers-2012$ tahoe ls -l
URI:DIR2-MDMF:qda3lf42dkxclwbuh5h7qwygne:obhqprvm6hafvarzzssrawgazx6p6tgopi4fslirhelg7xqyfr6a:
> -r-- 80898 Nov 11 04:58
276a292eebb111e186fe22000a1c9ebd_7.jpg
> -r-- 948821 Nov 11 04:58
Murphy-2012-Deaths__Preliminary_Data_For_2010.pdf
> -r-- 113191 Nov 11 04:58
Neal-2008-Table4.png
> -r-- 117367 Nov 11 04:58
Neal-2008-The_ketogenic_diet_for_the_treatment_of_childhood_epilepsy__a_randomised_controlled_trial.pdf
> -r-- 148251 Nov 11 04:58
Neal-2010-Efficacy_Of_Dietary_Treatments_For_Epilepsy.pdf
> -r-- 219436 Nov 11 04:58
Neal-2010-Table2.png
> -r-- 96881 Nov 11 04:58
causes-of-death-2010.png
> drwx - Nov 11 04:56
default
> -r-- 20450 Nov 11 04:58
hackers-2012-slides.html
> -r-- 11458 Nov 11 04:58
hackers-2012-slides.rst
> drwx - Nov 11 04:56
small-white
> }}}
>
> This is wrong, causing my slides to be unable to load their CSS when
viewed from Tahoe-LAFS (e.g.it looks like https://zooko.com/uri/URI%3ADIR2
-MDMF-
RO%3Appnrefnrnovjpoiv3jirjnpoim%3Aobhqprvm6hafvarzzssrawgazx6p6tgopi4fslirhelg7xqyfr6a/hackers-2012-slides.html
when it should look like this: https://zooko.com/uri/URI:DIR2-MDMF-
RO:nmrgdbrmwdta2bfzke4pfttsei:vlijvwz4kncumxkob5um45sni7btqelu4q5oltcl5nqxwjrif2iq/hackers-2012-slides.html).
>
> The result should have been that the directory-and-file structure in the
tahoe-lafs dir matched that in the local dir.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/712#comment:3>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list