Thank you :)

-----Original Message-----
From: Nicklas Nordborg [mailto:nick...@thep.lu.se] 
Sent: 03 November 2009 07:43
To: BASE ML
Subject: Re: [base] File path derivations

Offord, Victoria wrote:
> Hi,
> 
> I was wondering how the unique/random path names are created for the
> internalname/locations of uploaded files.  For example my file is
> stored in:
> 
> 2009-45/02-22/2468db7b
> 
> I gather that the 2009 is the year and the 02 refers to the date the
> file was uploaded. How are the other numbers/values created as I
> wanted to add folders/directories from a program I am running which
> creates reults files for the data stored in BASE and wanted to keep
> them in line with the setup.

2009 is the year.
45 is the week number.
02 is the day in month.
22 is the seconds.
The rest is just the original filename padded with some random
characters
and possibly trunked to keep the length less than 32 characters.

This is all internal to BASE and is not something that is visible to
users
or external programs. The system was designed to keep the number of
files within a directory to a low number, both in the short timescale
and in
the long timescale. The reason is that we don't want to hit any hard
limit
regarding the max number of files/subdirectories per directory in the
file
system. The strategy may change if we discover some flaw. Also note that
a
file may be moved to a different place by BASE if it is modified (eg.
replaced,
edit, compressed, etc.).

I don't see any point in using this system externally. It will be very
hard to
find your files.

/Nicklas

------------------------------------------------------------------------
------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
The BASE general discussion mailing list
basedb-users@lists.sourceforge.net
unsubscribe: send a mail with subject "unsubscribe" to
basedb-users-requ...@lists.sourceforge.net

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
The BASE general discussion mailing list
basedb-users@lists.sourceforge.net
unsubscribe: send a mail with subject "unsubscribe" to
basedb-users-requ...@lists.sourceforge.net

Reply via email to