Closed GoogleCodeExporter closed 9 years ago
There's a partial solution to this in the development version, a -c option that
creates subdirectories per
owner of the document. This however still doesn't solve your issues where the
same owner may have
documents with the same name.
Replicating the directory structure doesn't help either as someone can have two
documents with the same
name in the same directory (its a possibility).
Previous versions of gcp did append the document_id to the name of the file but
I had some users report
issues like it had characters that were accepted in various OSes.
Let me think this through and see what I can come up with, will ensure that
this is included in the 2.0.2
release. Thanks for reporting it in.
Additionally can I request you to be a beta tester for this feature?
Original comment by devraj
on 24 Oct 2009 at 11:41
For a quick and dirty solution I've just modified the export_filename including
also
the "entry.resourceId.text". This hack works correctly under linux (ext3
filesystem)
but very likely, as you said, could give problems in other environments.
Maybe it would be possible to use a simple hash function that maps the
document_id to
a set of numerical-only values, in this way I think it would be possible to
avoid any
OS concern.
I would be pleased to help as a beta tester.
Thanks again!
Original comment by gdaz...@gmail.com
on 25 Oct 2009 at 7:09
Added -i option to add a base64 encoded hash of the document id to the file
name. Now available in the
Subversion repository.
Please note this feature is still under testing and development
Original comment by devraj
on 25 Oct 2009 at 10:26
Base64 hash accepted as the proposed change.
Original comment by devraj
on 29 Oct 2009 at 8:32
Original issue reported on code.google.com by
gdaz...@gmail.com
on 24 Oct 2009 at 1:47