mangle a character or forbid/prohibit it's use when creating files/folders

David Collier-Brown davec-b at rogers.com
Sat Nov 19 14:39:51 MST 2011


Mangle map was used to map strings to one another, such as .htm to .hml.
I suspect the elegant way to deal with blanks in filenames is through a
virtual filesystem.
You can make "albert alligator.doc" be stored as "albert_alligator.doc", and
honor lookups for both forms.

It's been years since I wrote a vfs, but I speculate you're looking at
about 50 lines of code...

--dave


lejeczek wrote:
> I've seen somewhere there used to be 'mangle map' or something alike,
> in my case it's all about whitespaces that users stubbornly use not
> responding to our pleads,
> it enforces an extra effort on related bash scripting side, scripts
> that traverse filesystem content for different reasons
> best way would be to verbosely forbid a character usage at creation
> time or silently mangle it, ie. whitespace -> underscore
>
> On 11/12/2011 12:33 AM, David Collier-Brown wrote:
>> lejeczek wrote:
>>     
>>> hi everybody
>>>
>>> hope you don't find my email as another clutter on the list, have not
>>> had much luck on the users list,
>>> as in the subject, is it possible?
>>>
>>> regards
>>> Pawel
>>>
>>>       
>> IMHO, the characters usable mostly varies with the OS chosen:... What
>> character is evil, why and what's the context?
>>
>> --dave c-b
>>
>>     


-- 
David Collier-Brown,         | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb at spamcop.net           |                      -- Mark Twain
(416) 223-8968



More information about the samba-technical mailing list