Class: FileUtil
- Inherits:
-
Object
- Object
- FileUtil
- Defined in:
- lib/fileutil.rb
Class Method Summary collapse
-
.convert_to_win_filename!(filename) ⇒ Object
Illegal characters in Windows filenames (XP SP2) are: \ / : * ? “ < > |.
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 |