Timeline for Is a single dot a valid filename in Windows?
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 7, 2019 at 13:32 | comment | added | phuclv | @JW0914 I haven't, but others have and I've read how to do that from the internet. That's because all names in the Win32 namespace technically have an invisible dot at the end | |
Sep 7, 2019 at 13:30 | comment | added | JW0914 | @phuclv You've verified this on all versions of Windows (xp, vista, 7, 8, 8.1, 10)? | |
Sep 7, 2019 at 13:29 | comment | added | phuclv |
@JW0914 Windows allows directories to be named with a preceding dot, but only via CLI on many Windows editions that's incorrect. You can create directories and files with a preceding dot like I commented. The final dot will automatically be removed and you'll get .ssh , .gnupg as expected
|
|
Sep 7, 2019 at 13:28 | comment | added | JW0914 | @phuclv I'm confused as to what you're replying no to... | |
Sep 7, 2019 at 13:26 | comment | added | phuclv |
@JW0914 no, you can create any files starting with a dot in Explorer by appending a dot to the end like .ssh. , .gnupg. . The final dot will be removed, leaving you with .ssh , .gnupg
|
|
Sep 7, 2019 at 13:24 | comment | added | JW0914 |
Windows allows directories to be named with a preceding dot, but only via CLI on many Windows editions (i.e. .ssh , .gnupg , etc.). I'm not certain on when the functionality was added to File Explorer in Win10, but v1903 does allow this through File Explorer as well. If your question is can a directory simply be named . , no, as no OS allows this because a single . is an alias for the current directory, just as .. is an alias for the preceding directory.
|
|
May 10, 2019 at 1:25 | history | edited | phuclv | CC BY-SA 4.0 |
added 2 characters in body; edited tags
|
May 9, 2019 at 15:25 | vote | accept | Kalle Richter | ||
May 9, 2019 at 15:24 | answer | added | phuclv | timeline score: 10 | |
May 6, 2019 at 20:04 | comment | added | Kalle Richter | @phuciv I don't want to do it, users of the software my team is developing might. | |
May 6, 2019 at 16:38 | comment | added | phuclv | why do you want to do that? In PowerShell you'll see `.` all the time to indicate the current folder. Less common in cmd but still the same meaning | |
May 6, 2019 at 15:08 | answer | added | Jacob Mueller | timeline score: -2 | |
May 6, 2019 at 14:50 | history | asked | Kalle Richter | CC BY-SA 4.0 |