konelupy wrote:A jak moc korektni je nazev s mezerou na zacatku?
Imho by to korektni byt melo (neni to nepovoleny znak typu +, *, ?, ...). Nicmene treba takovy Explorer mi soubor s mezerou na zacatku zrejme vytvorit nepovoli, resp. mezery automaticky odmaze (kdyz pouziju kontextovou nabidku a Novy)
P.S.: I kdyz mozna se pletu, na jdnom MSDN blogu je clanek
"What makes a valid Windows file name?", kde se mimojine uvadi:
Code: Select all
NTFS and the Posix subsystem have the most permissive definition of a "legal" name. The name may be up to 32,768 Unicode characters long. The name can contain trailing periods, trailing spaces, and two files may have names that differ only in case (e.g., README.TXT and readme.txt).
The Win32 subsystem enforces additional constraints on legal file names. The name can be at most MAX_PATH characters long (defined in windef.h as 260 characters), may not have trailing dots or spaces, and file names are case preserving, not case sensitive — if two files exists with names that differ only in case, you will only be able to manipulate one of them through Win32 APIs.
Dulezite je asi to "may not have trailing dots or spaces", bohuzel si nejsem jisty, jestli trailing znamena jen koncove nebo i pocatecni - je tu nejaky zdatnejsi anglictinar?
