in reply to Re^2: Path and File Name Maximum Lengths
in thread Path and File Name Maximum Lengths
Correct. It used to be that Perl supported (some) wide file apis, but they got dropped in order to support unicode on other platforms.
If you want to create a totally impractical path with 32k chars, compile and run this. (WARNING: It is a bitch to delete!)
#include <stdio.h> #include <windows.h> wchar_t path[ 32768 ] = L"\\\\?\\c:\\1234567890\\"; wchar_t name[] = L"1234567890\\"; int main( int argc, char **argv ) { while( CreateDirectoryW( path, NULL ) ) { wcscat( path, name ); }; printf( "Error %d\n", GetLastError() );; }
|
|---|