| Class | Origami::Filename |
| In: |
sources/parser/file.rb
|
| Parent: | Object |
Converts Windows file path into PDF file path.
# File sources/parser/file.rb, line 90
90: def DOS(file)
91: path = ""
92: # Absolute vs relative path
93: if file.include? ":"
94: path << "/"
95: file.sub!(":","")
96: end
97:
98: file.gsub!("\\", "/")
99: ByteString.new(path + file)
100: end