dev-resources.site
for different kinds of informations.
Windows dotted paths
Published at
1/5/2025
Categories
git
fail
windows
Author
shredwheat
Author
10 person written this
shredwheat
open
I stumbled into learning that Windows (or NTFS?) does not allow filenames with trailing dots.
Internally it appearsthe dot is a separator between the base filename and the extension. Some tools treat the final dot as implied, so type plain.
will show the contents of a file named plain
.
Armed with this curiosity I decided to create a troublesome git repository to discover how Windows would treat such a thing?
- Indiscriminate error?
- Pick one arbitrary conflicting name?
- Privilege escalation?
https://github.com/PeterShinners/doomdots
PS C:\dev> git clone https://github.com/PeterShinners/doomdots.git
Cloning into 'doomdots'...
remote: Enumerating objects: 35, done.
remote: Counting objects: 100% (35/35), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 35 (delta 10), reused 0 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (35/35), 10.41 KiB | 1.16 MiB/s, done.
Resolving deltas: 100% (10/10), done.
error: invalid path 'MIXed.'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
PS C:\dev> cd .\doomdots\
PS C:\dev> git switch main
error: invalid path 'MIXed.'
error: invalid path 'enddot.'
error: invalid path 'extdot.txt.'
It's likely these errors come from Git itself, and there's an alternative where it could fallback on some undefined system behavior.
Anyways, one more corner case to avoid along with mixed case naming conflicts and invalid characters.
windows Article's
30 articles in total
笔记3
read article
Как скачать видео с Ютьюб на компьютер? (непростой путь)
read article
Update WSL Ubuntu password
read article
Debian and KDE 6 - WSL - How to install KDE 6 via Debian - Windows 11 - X410 - Linux - 2024 https://www.youtube.com/watch?v=yrtgmwsptVc
read article
Windows dotted paths
currently reading
TryHackMe | Windows PowerShell | RSCyberTech
read article
2024
read article
SQL Server: Get database port
read article
How to make the best of a slow machine running on limited resources with a Windows environment as a Java Engineer
read article
Configuring Hyper-V Global Default Directories
read article
How to Implement Camera Preview with Windows Media Foundation API in C++
read article
TryHackMe | Windows Command Line | RSCyberTech
read article
How to check your battery health
read article
Atualização do Windows
read article
AWS CLI: Instalación en Windows y Linux, y Uso Básico
read article
Hyper-V vs WSL: How To Pick The Right Tool?
read article
How to Install Docker on Windows: A Beginner's Guide
read article
Dev Drive's shortcut guide
read article
Booting an OS from a Preserved .E01 (EWF) Disk Image File Using Arsenal Image Mounter
read article
Can You Use Windows on Hyper-V?
read article
Is Your Laptop Hacked? Here’s How to Find Out!
read article
Configure SSH Passwordless Login from Windows to Linux
read article
How to Fix 'File Access Denied' Issue on Windows
read article
🚀 Never Lose Your Clipboard History Again on Windows!
read article
[F#] Bring Chrome Window to front in Selenium (Windows)
read article
การใช้งาน Polyglot notebook กับ Python
read article
Chat Bot AP en batch
read article
Complete Guide to Window Replacement and Renovation in Christchurch
read article
Video: Install Ubuntu using WSL 2
read article
Transforming Windows Terminal into a Productivity Powerhouse
read article
Featured ones: