Class: FileUtil

Inherits:
Object
  • Object
show all
Defined in:
lib/fileutil.rb

Class Method Summary collapse

Class Method Details

.convert_to_win_filename!(filename) ⇒ Object

Illegal characters in Windows filenames (XP SP2) are: \ / : * ? “ < > |



6
7
8
# File 'lib/fileutil.rb', line 6

def FileUtil.convert_to_win_filename!(filename)
  filename.gsub(/[\\\/:*?"<>|]/, '-')
end