On Aug 6, 2006, at 4:04 PM, Ivan Sagalaev wrote: > Todd O'Bryan wrote: >> But aren't backslashes legal characters in unix-like OSes, so that >> the filename will get truncated if it has a backslash in it? > > You're right. But it's better to have nice filenames from Windows > clients in most cases with a rare occasion of truncated filenames > uploaded from Unix than the other way around (IMHO).
Well, it would be nice to have both work correctly. :-) Is it the case that all Windows paths start with [A-Z]:\ # for drive letters or [^\\]+\\ # for network folders so that we could check for those? Granted, a Unix file with two backslashes next to each other or a beginning that looks like a drive letter still isn't going to work, but that's at least less likely than a single backslash somewhere. Todd --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---
