NTFS path limit is 255 characters
This commit is contained in:
@@ -13,7 +13,7 @@ require_relative 'filecreate'
|
||||
#puts drive.DriveType
|
||||
if drive.DriveType == 2
|
||||
@files = @filesUtil.findFilesByFileName(drive.Path,'*.*')
|
||||
@filesTooLong = @files.select{|f| @filesUtil.getExpandedPathByFileName(f).length > 260}
|
||||
@filesTooLong = @files.select{|f| @filesUtil.getExpandedPathByFileName(f).length > 255}
|
||||
@filesTooLong.each do |file|
|
||||
@whatToWrite = @filesUtil.getExpandedPathByFileName(file)
|
||||
@outputFile.writeWindowsFilePath(@whatToWrite)
|
||||
|
||||
Reference in New Issue
Block a user