Logo

dev-resources.site

for different kinds of informations.

Windows dotted paths

Published at
1/5/2025
Categories
git
fail
windows
Author
shredwheat
Categories
3 categories in total
git
open
fail
open
windows
open
Author
10 person written this
shredwheat
open
Windows dotted paths

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?

  1. Indiscriminate error?
  2. Pick one arbitrary conflicting name?
  3. 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.'
Enter fullscreen mode Exit fullscreen mode

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
Favicon
笔记3
Favicon
Как скачать видео с Ютьюб на компьютер? (непростой путь)
Favicon
Update WSL Ubuntu password
Favicon
Debian and KDE 6 - WSL - How to install KDE 6 via Debian - Windows 11 - X410 - Linux - 2024 https://www.youtube.com/watch?v=yrtgmwsptVc
Favicon
Windows dotted paths
Favicon
TryHackMe | Windows PowerShell | RSCyberTech
Favicon
2024
Favicon
SQL Server: Get database port
Favicon
How to make the best of a slow machine running on limited resources with a Windows environment as a Java Engineer
Favicon
Configuring Hyper-V Global Default Directories
Favicon
How to Implement Camera Preview with Windows Media Foundation API in C++
Favicon
TryHackMe | Windows Command Line | RSCyberTech
Favicon
How to check your battery health
Favicon
Atualização do Windows
Favicon
AWS CLI: Instalación en Windows y Linux, y Uso Básico
Favicon
Hyper-V vs WSL: How To Pick The Right Tool?
Favicon
How to Install Docker on Windows: A Beginner's Guide
Favicon
Dev Drive's shortcut guide
Favicon
Booting an OS from a Preserved .E01 (EWF) Disk Image File Using Arsenal Image Mounter
Favicon
Can You Use Windows on Hyper-V?
Favicon
Is Your Laptop Hacked? Here’s How to Find Out!
Favicon
Configure SSH Passwordless Login from Windows to Linux
Favicon
How to Fix 'File Access Denied' Issue on Windows
Favicon
🚀 Never Lose Your Clipboard History Again on Windows!
Favicon
[F#] Bring Chrome Window to front in Selenium (Windows)
Favicon
การใช้งาน Polyglot notebook กับ Python
Favicon
Chat Bot AP en batch
Favicon
Complete Guide to Window Replacement and Renovation in Christchurch
Favicon
Video: Install Ubuntu using WSL 2
Favicon
Transforming Windows Terminal into a Productivity Powerhouse

Featured ones: