EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #02892


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Media upload location


On 14/04/14 15:39, Ian Stuart wrote:
On 14/04/14 15:10, Andrew Beeken wrote:
Hello all!

Hopefully a quick one this time – where does EPrints upload media to? I’m trying to see if a file exists…
... as in files associated with a deposit?

<EPrints>/archives/<ARCHIVE
ID>/documents/disk0/<[00-99]>/<[00-99]>/<[00-99]/<[00-99]>/<document_number>/<filename>

Where the 00-99 bits just count up as you add more records in...


Just to clarify: the 00-99 bits are a form of encoding of the EPrint ID the documents/files belong to :-)

They are tied to a DB record/primary key (hence one needs to know-what-they-re-doing (c)) so are considered part of the relational model. One cannot create them by hand or shouldn't, rather.

So Andrew, if you know the EPrint ID, you can find the path easily on disk (that's probably more efficient than grepping).

Seb