rdrop2 icon indicating copy to clipboard operation
rdrop2 copied to clipboard

Issue with folder names with capital letter ?

Open Fablepongiste opened this issue 10 years ago • 9 comments

drop_dir('AFL_Resources/Model/db')
Source: local data frame [6 x 5]

                                        path mime_type    root  bytes                        modified

1            /AFL_Resources/model/db/afl.csv  text/csv dropbox 354595 Mon, 11 May 2015 17:55:34 +0000
2 /AFL_Resources/model/db/lookup_stadium.csv  text/csv dropbox   2234 Mon, 11 May 2015 17:55:34 +0000
3        /AFL_Resources/model/db/stadium.csv  text/csv dropbox    924 Mon, 11 May 2015 17:55:34 +0000
4   /AFL_Resources/model/db/team_stadium.csv  text/csv dropbox   1689 Mon, 11 May 2015 17:55:34 +0000
5           /AFL_Resources/model/db/team.csv  text/csv dropbox    638 Mon, 11 May 2015 17:55:34 +0000
6    /AFL_Resources/model/db/teamStadium.csv  text/csv dropbox   3451 Mon, 11 May 2015 17:55:34 +0000

aflData <- drop_read_csv(file = "AFL_Resources/Model/db/afl.csv")
File not found on Dropbox 

Capital letter seems to be the problem as if I rename Model in model then it works fine

 drop_dir('AFL_Resources/model/db')
                                        path mime_type    root  bytes                        modified
1            /AFL_Resources/model/db/afl.csv  text/csv dropbox 354595 Mon, 11 May 2015 17:55:34 +0000
2 /AFL_Resources/model/db/lookup_stadium.csv  text/csv dropbox   2234 Mon, 11 May 2015 17:55:34 +0000
3        /AFL_Resources/model/db/stadium.csv  text/csv dropbox    924 Mon, 11 May 2015 17:55:34 +0000
4   /AFL_Resources/model/db/team_stadium.csv  text/csv dropbox   1689 Mon, 11 May 2015 17:55:34 +0000
5           /AFL_Resources/model/db/team.csv  text/csv dropbox    638 Mon, 11 May 2015 17:55:34 +0000
6    /AFL_Resources/model/db/teamStadium.csv  text/csv dropbox   3451 Mon, 11 May 2015 17:55:34 +0000

aflData <- drop_read_csv(file = "/AFL_Resources/model/db/afl.csv")
/tmp/RtmpYIbY9x/afl.csv on disk 354.595 KB

Fablepongiste avatar May 11 '15 18:05 Fablepongiste

Thanks for the report. I'll try to replicate the issue and see how to fix it.

karthik avatar May 11 '15 18:05 karthik

This is what I get. Can you try this below (with different folder names to avoid conflict with your existing files) and let me know if you still have issues? I'm using '0.6.5.99' (latest GitHub version)

> drop_create('AFL_Resources/Model/db')
Folder AFL_Resources/Model/db created successfully 

> write.csv(iris, file = "foo.csv")
> drop_upload('foo.csv', dest = "AFL_Resources/Model/db")
File foo.csv uploaded successfully
> drop_read_csv("AFL_Resources/Model/db/foo.csv")

 /var/folders/2v/fbdjfq9x4_g0gnbr_gqgh7hr0000gn/T//Rtmp1wWCFl/foo.csv on disk 4.821 KB
      X Sepal.Length Sepal.Width Petal.Length Petal.Width    Species
1     1          5.1         3.5          1.4         0.2     setosa
2     2          4.9         3.0          1.4         0.2     setosa
3     3          4.7         3.2          1.3         0.2     setosa
4     4          4.6         3.1          1.5         0.2     setosa
5     5          5.0         3.6          1.4         0.2     setosa
6     6          5.4         3.9          1.7         0.4     setosa
7     7          4.6         3.4          1.4         0.3     setosa
8     8          5.0         3.4          1.5         0.2     setosa
9     9          4.4         2.9          1.4         0.2     setosa

karthik avatar May 11 '15 18:05 karthik

You example works fine ..... But still have the issue with my example quite crazy ..

I am using the same version

Fablepongiste avatar May 12 '15 09:05 Fablepongiste

There is definitively an issue with this capital, have it on other folders too... Has never happened to anybody else ?

Fablepongiste avatar May 13 '15 12:05 Fablepongiste

What OS are you on? This is some information from Dropbox:

Case conflicts

Most Linux installations allow you to have two files or folders with the same name but different capitalization. However, by default, Mac and Windows won't differentiate file or folder names by case. Therefore, if Dropbox comes across linux directories named "Sample folder" and "sample folder" (lowercase "s"), it will still sync both folders to Mac and Windows computers, but one will appear as a copy of the original file and appended with case conflict.

karthik avatar May 13 '15 16:05 karthik

Yes Indeed I am on Linux. Might be the reason. Weird ! Can close the issue, maybe worth put a note somewhere ?

Fablepongiste avatar May 27 '15 13:05 Fablepongiste

I'm having this same problem on a Windows machine. It's only ever the first file path beyond the root directory that's changed from upper to lower case.

krismcn avatar Aug 23 '17 21:08 krismcn

This issue appears to be resolved in 0.8.1. Can either of you reinstall and report back?

karthik avatar Sep 30 '17 00:09 karthik

No, still having the same problem with 0.8.1

krismcn avatar Oct 12 '17 22:10 krismcn