[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


The base windows folder limit is well interesting its 21 or 22 folders depending on how you count and its interesting because the name is what's stopping it "new folder" is too long now yes you could shorten the name but going of the fact that shortening the name is changing the folder, the base folder limit is 21 or 22
>>
what
>>
>>106428775
Are you talking about how many levels of nested directories you can have in Windows?
>>
>>106428923
yah i used folders so i just called it the base folder limit i wonder how many folders could be placed into one with the names shortened tho
>>
>>106428937
Could test this with a shell script that creates nested folders named "a" until it hits an error.
>>
>>106428979
good idea i'll try that tomorrow
>>
>>106428775
Sir, kindly enable 'Win32 Long paths'
>>
>>106428979
>>106429032
Isn't it like 250? File path length limit? I run into this at work
>>
I forgot to mention im on windows 10 home
>>
File: 1752310323101467.png (5 KB, 290x136)
5 KB
5 KB PNG
count=0;while [[ "1" == "1" ]]; do mkdir a; if [[ $? != 0 ]]; then echo $count; break; fi; echo Directory made... $count; ((count++)); cd a; done

Just go to C:/ in cygwin bash, run this and report.

I'm on dir 450 already and aside from path resolution slowing down, nothing has happened.
>>
File: 1752788790209418.png (3 KB, 278x71)
3 KB
3 KB PNG
>>106430148
It has slowed down to like 1 directory per second, but still going.

But that's just because I have disabled the path limit. The standard limit is 256 characters, so expect around 126 nested directories on your system.
>>
File: 1743977208480722.png (3 KB, 302x93)
3 KB
3 KB PNG
>>106430163
I stopped it at 796.
>>
File: 1748087798199186.png (26 KB, 1901x313)
26 KB
26 KB PNG
A big path...for you
>>
>>106429048
>>106430163
Ackshually, MAX_PATH (a leftover from DOS) is 260 ANSI characters. This is what the ANSI file (name) APIs, from the Win9x days, top out at. Like most things, it's for backward compatibility.
NT's path buffer has always been 64KB of UCS-2 (and later, UTF-16) codepoints. The problem is twofold however: lots of software still use the ANSI file APIs (despite them being obsolete for 20 years), and secondly, there were real NT file APIs (such as CreateDirectory[Ex]W()) that still respected MAX_PATH, to stop the user getting themselves into a situation where a program created a folder that the shell couldn't delete, or vice-versa.
The solution to all this for decades was to bypass Win32 and go to the directly to the NT namespace, by prefixing your paths with \\?\ - but this also disabled a lot of the DOSisms (relative paths, etc.) that people had gotten comfy with over the last 30 years.
Microsoft finally figured out that devs weren't going to move on from DOS, so invented >>106429047 about 10 years ago.
>>
>>106430247
Aren't UCS-2 and UTF-16 the same thing?
>>
>>106430378
Okay no, my bad.
>>
>>106430378
>>106430384
I understand your initial confusion. For the most common codepoints, they ARE the same thing - just as ANSI and UTF-8 are.
>>
>>106430416
I've never been confused between ASCII/ANSI/UTF-8.

But I guess UCS-4 and UTF-32 being exactly the same thing confused me for UCS-2 and UTF-16 as well.
>>
>>106428775
There's no nested folder limit but there is a character limit to file paths.
With folder names made up of one character each, you could have a path like this if the character limit is 256 characters:
C:\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1

Which comes to 127 folders. Of course, there can be no files within the final folder.
>>
windows is so fucking dumb. some programs don't even work when the path is longer than one line of the terminal. I was trying to run kafka once and I had to rename the root folder to something shorter just so it would run.
who comes up with this stuff?
>>
File: 1000018835.jpg (350 KB, 1536x2048)
350 KB
350 KB JPG
>>106430170
>>106430180
Holy shit! Well done anon; very interesting.
>>
>>106428775
lol, when i was in highschool i broke some backup script on the school domain and had the IT guys come yell at me in class because i made a infinite loop of folders and symlinks
>>
cool



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.