La sessione di domande e risposte di oggi ci viene fornita per gentile concessione di SuperUser, una suddivisione di Stack Exchange, un raggruppamento di domande e risposte basato sulla comunità.
Schermata della finestra del messaggio per gentile concessione di Ben N (SuperUser).
La domanda
Il lettore SuperUser EdwardBlack vuole sapere perché non è possibile nominare una cartella ._. sul suo sistema Windows 7:
I just noticed that it is not possible to name a folder
._.
sul mio sistema Windows 7. Viene rinominato
._
anziché. A volte scompare subito dopo averlo nominato, ma poi riappare dopo aver aggiornato la vista. Sembra che Windows abbia un problema con i punti alla fine di un nome di file. Perchè è questo?
Perché non è possibile nominare una cartella ._. in Windows 7?
La risposta
Il collaboratore di SuperUser Ben N ha la risposta per noi:
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.
Hai qualcosa da aggiungere alla spiegazione? Audio disattivato nei commenti. Vuoi leggere più risposte dagli altri utenti di Stack Exchange esperti di tecnologia? Controlla la discussione completa qui.