Method: ChefConfig::PathHelper.windows_max_length_exceeded?
- Defined in:
- lib/chef-config/path_helper.rb
.windows_max_length_exceeded?(path) ⇒ Boolean
90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/chef-config/path_helper.rb', line 90 def self.windows_max_length_exceeded?(path) # Check to see if paths without the \\?\ prefix are over the maximum allowed length for the Windows API # http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx unless /^\\\\?\\/.match?(path) if path.length > WIN_MAX_PATH return true end end false end |