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
gdalinfo command 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
gdalinfo command 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).
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.
gdalinfocommand against the file.gdalinfocommand against the copied file.Operating system
Edition Windows 10 Pro
Version 21H2
OS build 19044.1706
GDAL version and provenance
Remarks
Problem does not exists on regular file system (for example for files located on
D:\drive).