NTFS path limit is 255 characters

This commit is contained in:
2015-07-21 09:58:11 -04:00
parent 10abf7c562
commit 78f5ecb24e
2 changed files with 3 additions and 3 deletions

View File

@@ -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)