Method: Path.expand_path

Defined in:
lib/epitools/path.rb

.expand_path(orig_path) ⇒ Object

Same as File.expand_path, except preserves the trailing ‘/’.



1509
1510
1511
1512
1513
# File 'lib/epitools/path.rb', line 1509

def self.expand_path(orig_path)
  new_path = File.expand_path orig_path
  new_path << "/" if orig_path.endswith "/"
  new_path
end