Днешната сесия за въпроси и отговори ни идва с любезното съдействие на SuperUser - подразделение на Stack Exchange - обединяване на уеб сайтове с въпроси и отговори.
Снимка на екрана на съобщението с любезното съдействие на Ben N (SuperUser).
Въпроса
Четецът на SuperUser EdwardBlack иска да разбере защо не е възможно да се именува папка ._. на неговата Windows 7 система:
I just noticed that it is not possible to name a folder
._.
на моята Windows 7 система. Той се преименува на
._
вместо. Понякога изчезва веднага след именуването му, но след това се появява отново след освежаване. Windows изглежда има проблем с точки в края на име на файл. Защо е това?
Защо не е възможно да зададете име на папка ._. в Windows 7?
Отговорът
Сътрудникът на SuperUser Бен Н има отговор за нас:
Windows normally requires files to have either no extension or an extension that is at least one character long. It does not like zero length extensions (i.e. file names that end with a period). Folders can have extensions too, therefore, Windows does not let their names end with a period.
Source: From the article linked to by DavidPostill:
Use a period to separate the base file name from the extension in the name of a directory or file.
If you try to end a file or directory name with a period, Windows just assumes that you did not want an extension and thus removes it (even if you create it with the md command in a command prompt window).
Danger Zone
If you really want a folder name to end with period, you will need to use the magic raw name override sequence of ?. In a command prompt window, md \?C:path ocontainer._. will indeed create a folder named ._., but lots of programs will have problems with it, even Windows Explorer:
Such a directory can only be removed with the rd command followed by its ? name, or renamed with its short (8.3, dir /x) name.
Имате ли нещо, което да добавите към обяснението? Звучи в коментарите. Искате ли да прочетете повече отговори от други потребители на Stack Exchange? Вижте цялата тема на дискусията тук.