Questions tagged [long-path]
15 questions
8
votes
1 answer
How to properly handle windows paths with the long path prefix with std::filesystem::path
std::filesystem::path doesn't seem to be aware of the windows long path magic prefix.
Is this per design or is there a mode/flag/compiler switch/3rd party library which can be used?
f.e.
for a path like C:\temp\test.txt, the root_name is C: and the…

ridilculous
- 624
- 3
- 16
4
votes
1 answer
How to enable "Long Path Aware" behavior for setting the current directory in a C++ windows console app
In a C++ console application on windows, i'm trying to break the MAX_PATH restriction for the SetCurrentDirectoryW function.
There are many similar questions already asked but none got a usable answer:
How to enable "Long Path Aware" behavior via…

ridilculous
- 624
- 3
- 16
4
votes
0 answers
Starting win32 application from a long path
Enabling long path support for my application I have done the following:
Embedded the longPathAware manifest into my application using mt.exe
Ensured that the LongPathsEnabled registry key is set to 1
My application actually started to be able to…

Ayman Salah
- 1,039
- 14
- 35
3
votes
1 answer
Filename too Long in GitKraken for Windows
As suggested in Q22575737, I've updated my registry and have set git config --system core.longpaths true while working with long paths. The problem is solved in Git Bash for Windows however, I am getting the error in GitKraken as below. I've also…

Mr. Hobo
- 530
- 1
- 7
- 22
2
votes
0 answers
Windows long path as current directory
If I understand this doc correctly: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd all calls should work with long path. I have Windows 10 version 1909 and the registry key…

Olivier D
- 64
- 4
1
vote
0 answers
FileSytemWatcher: GetLongPathName for a deleted file
I have the following function:
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
public static extern int GetLongPathName(
[MarshalAs(UnmanagedType.LPTStr)]
string path,
[MarshalAs(UnmanagedType.LPTStr)]
StringBuilder longPath,
…

H44R
- 13
- 3
1
vote
1 answer
ALINK error 1065 even when Windows Long Paths enabled
I am trying to get a C# Visual Studio 2019/MSBuild job to build on a Jenkins build server. I know that my file paths are too long, so I have enabled Long File Paths in the Group Policy Editor (and verified that it has persisted in the registry…

Andrew
- 342
- 3
- 12
1
vote
1 answer
How can I use the Win32::LongPath module in Perl to manipulate long path names?
My Perl scripts need to work with pathnames that are longer than 260 characters, and I can not turn on the feature in the registry to enable Windows Long Path support.
I included a small Perl test, using the Win32::LongPath module to do this, and…

Flandraco
- 991
- 10
- 11
1
vote
0 answers
Getting File not found error" with zipfile module python
File "import.py", line 64, in unzip
File "zipfile.py", line 1647, in extractall
File "zipfile.py", line 1701, in _extract_member
FileNotFoundError: [Errno 2] No such file or directory:
Getting this error for a file while unzipping, The…

Check_mate
- 45
- 8
0
votes
1 answer
How to install RASA 3.X without Docker or enabling Windows Long Path Support, to install its Tensorflow dependency, that has risk of file corruption?
RASA 3.X is a chatbot development framework that has Tensorflow as its training dependency. Pip installing RASA using Windows or VS Code Command Prompt leads to error in installation of Tensorflow, which is further elaborated in attempt to download…

Usaid Rehan
- 1
- 2
0
votes
2 answers
How can I add directory with long name files (more 260 symbols) to CMake CPack NSIS win installer?
I try to add big directory with long paths to CMake CPack NSIS win installer and have error related with long paths
CMake part:
install(
DIRECTORY src/dir_with_long_file_paths
DESTINATION dest
)
cmd line cpack message:
cpack -C…

Andrii Rallo
- 87
- 1
- 12
0
votes
0 answers
Long path support in Filesystem watcher control
In our client application implemented in C# with .Net framework 4.8 (OS: Windows 10), we are using file system watcher control to detect folder's events.
To support a long path we have tried with \\?\ in folder path.
When we create a new file in…

James
- 3
- 3
0
votes
1 answer
Makefile include directive failing for long path Windows 10
I have a Makefile that includes another makefile with the include makefile directive and the included Makefile exists on a deep path (200 characters). The Makefile doesn't produce any error on reading the long path Makefile however it's contents are…

sbunny
- 433
- 6
- 25
0
votes
1 answer
configure npm&webpack Win10 for long paths using relative paths
Current webpack bundling project folder structure (win10):
root_folder\
|--node_modules
|--src
|--index.js
|--template.html
|--package.json
|--webpack.config.js
Contents of index.js:
console.log("Hello webpack");
Contents of template.html:
…

Francisco Costa
- 111
- 9
0
votes
0 answers
MSBuild 16 and Windows Server 2012 r2 - long path error
I am having an issue after updating to the newest version of MSBbuild (16.5.0+d4cbfca49) on Windows Server 2012 R2.
When I run a build in a deep folder structure (up to 150 chars in length), the build fails because a project reference cannot be…

honzajscz
- 2,850
- 1
- 27
- 29