[Building Sakai] Resource file names

Jaques Smith jaques at opencollab.co.za
Tue Jul 8 07:03:37 PDT 2014


Thanks Matthew,

Makes sense.

Neal, the files are stored in generated folder and file names for
example 2014/189/10/4d017a32-8cb5-4cda-9ce5-14f74b063004

Jaques


On 8 July 2014 15:45, Matthew Jones <matthew at longsight.com> wrote:

> The Sakai CHS was created years ago, and my best guess would be because
> some filesystems on OSes that are actively used (Windows specifically)
> highly restrict the characters you can have in file/directory names over
> others. Which means we'd have to have had taken the absolute smallest
> possible character set and only allowed that for file/course and other
> names in Sakai, even if the host OS allowed for more characters. It was
> seems easier just to do a translation and not be restrictive in the app
> then or in the future.
>
> For instance on FAT and NTFS are are all illegal characters. / ? < > \ :
> * | ” ^
>
> There are also like 50 special reserved file names that are not allowed.
> OSX and UNIX depending on the file system also have restrictions.
> http://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words
>
> In addition, (I believe) the initial design of Sakai wasto store all files
> as binary content in the database (which this still supports). Only later
> was an option made to convert these out to the file system. Once the entire
> set of characters was allowed in the initial version of Sakai, it only made
> sense to allow export to something that was encoded so there was never any
> problems in directory names or file names. It's not possible to convert out
> from an unlimited character system to a limited one.
>
>
> On Tue, Jul 8, 2014 at 9:12 AM, Jaques Smith <jaques at opencollab.co.za>
> wrote:
>
>> Hi All,
>>
>> Can anyone tell my why files are not stored under their normal names.
>> Example if you save a file (*MyFile.pdf*) in Resource on the *Mercury *site
>> in the *Test *folder, why is or can it not be stored under
>> <storageRoot>/mercury/Test/MyFile.pdf?
>>
>> Thanks,
>> Jaques
>>
>>
>> ------------------------------
>> See OpenCollab email disclaimer at http://www.opencollab.co.
>> za/email-disclaimer
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
>
>

-- 

------------------------------
See OpenCollab email disclaimer at 
http://www.opencollab.co.za/email-disclaimer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140708/493cca67/attachment.html 


More information about the sakai-dev mailing list