-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
File on SMB share longer than MAX_PATH raises an "file does not exists in the file system" error #5836
Copy link
Copy link
Closed
Description
Actual behavior and expected behavior
Opening raster file located on SMB share where the path has more than 260 characters raises file does not exists in the file system error. I expected to be able to open raster file located on SMB share where path is longer than 260 characters (MAX_PATH)
Steps to reproduce the problem.
- Create/copy TIF file on SMB share where the file path is longer than 260 characters (for example: \\localhost\gdal\max-path\50-characters-long-name-50-characters-long-name-50\50-characters-long-name-50-characters-long-name-50\50-characters-long-name-50-characters-long-name-50\50-characters-long-name-50-characters-long-name-50\264-character-length-file-path.tif)
- Call
gdalinfocommand against the file. - [Instead of TIF file information error message will be shown]
- Copy the file into location where the path is less than 260 characters.
- Call
gdalinfocommand against the copied file. - [TIF file information will be shown]
Operating system
Edition Windows 10 Pro
Version 21H2
OS build 19044.1706
GDAL version and provenance
gdalinfo --version
GDAL 3.5.0, released 2022/05/10
Remarks
Problem does not exists on regular file system (for example for files located on D:\ drive).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

