[Tutor] OS lib creating an directory using an absolute path.
Alan Gauld
alan.gauld at yahoo.co.uk
Sat Feb 6 19:03:25 EST 2021
On 06/02/2021 23:38, boB Stepp wrote:
> On Sat, Feb 06, 2021 at 03:49:37AM -0700, Mats Wichmann wrote:
>
>> and would really suggest you not use directory names with spaces in
>> them, it will eventually bring you grief.
>
> Out of habit from looong ago when spaces were not allowed at all, I tend
> not to use spaces in directory/folder names. But don't all modern
> operating systems now allow spaces in their directory names? What would be
> the potential sources of grief in modern times?
Speaking personally I find filenames/folders with spaces continually
trip me up, especially in shell scripts and programs. You need to
remember to always add quotes and escape sequences and be careful
about splitting paths etc etc.
If you only manage files via a GUI then it may work OK but any time
you have to type filenames or paths spaces introduce extra complexity.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list