multicast / google-docs-fs

Automatically exported from code.google.com/p/google-docs-fs
GNU General Public License v2.0
0 stars 0 forks source link

Documents with same name are not show #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import a document "test.doc", change something in the document and reimport 
"test.doc"

Now you see 2 files named "test.doc" on google docs but it isn't show in 
nautilus.

What version of the product are you using? 1.0
On what operating system? Ubuntu lucid lynx

Original issue reported on code.google.com by mysterc...@gmail.com on 10 Aug 2010 at 1:29

GoogleCodeExporter commented 9 years ago
This is a limit of the file system. When google-docs-fs sees two files with the 
same "path" (i.e. with the same folder tag and the same name), it only reads 
the first one. File systems identify files by their fully-qualified path, so it 
was either this way, or use Google Docs's identifier which would be completely 
unintelligible.

My recommended solution is to either use files with different names, or put 
them in different folders.

Hope that helps,
Scott W

Original comment by d38dm8nw81k1ng@gmail.com on 12 Aug 2010 at 9:24

GoogleCodeExporter commented 9 years ago
When there are multiple files with the same name, I think it would be nice to 
put the last modified/uploaded file in the local listing directory.
I think it could be technically possible with gdocs api and fuse.

I use google doc to backup my documents, so I have a lot of documents with the 
same name in the same directory, and if I want to open an old version of my 
document i just have to choose it by the upload date (like subversion but in a 
easiest way).
If I can access to my last file it would be really nice, and I can use google 
doc web for accessing the older versions (which can't be done with the 
filesystem as you explained).

Original comment by mysterc...@gmail.com on 12 Aug 2010 at 9:43

GoogleCodeExporter commented 9 years ago
I'm experiencing some issues by having different files with the same name that 
aren't grouped in the same history list.
Do you believe that google will fix this issue sometime soon?

Original comment by adriana...@gmail.com on 23 Sep 2010 at 8:01

GoogleCodeExporter commented 9 years ago
It's not an issue with Google Docs per se. It's merely in incompatibility 
between how Google Docs sees "files" and *NIX file systems see files.

The Document Title on Google Docs is merely an attribute of the document (think 
of it as the <title> tag in HTML). This allows multiple documents to have the 
same "name". google-docs-fs uses this Title to create the fully qualified path 
to a document (appending it to the directory path). More specifically, it will 
ask Google Docs for a list of files with that specific folder and that specific 
name, then just pick the first one. I don't think it's even aware of file types 
(another bug that should really be fixed).

The only way to correctly show all files would be to use the resource 
identifier. However this is simply not an option as it's an alphanumeric string 
that makes no sense to read.

A workaround could be to create a folders that don't repeat names, then put 
your files in those. Google Docs allows files to be placed in multiple folders, 
and google-docs-fs will happily populate that directory with the correct file.

Hope that helps,
Scott W

Original comment by d38dm8nw81k1ng@gmail.com on 24 Sep 2010 at 10:18