Method: MyMatrix.make_path

Defined in:
lib/mymatrix.rb

.make_path(path, opts = { }) ⇒ Object



1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
# File 'lib/mymatrix.rb', line 1079

def self.make_path(path, opts={ })
  # opath = makepath(@file, {:ext=>nil, :postfix=>postfix})
dir = File.dirname(path)
  ext = opts[:ext]
ext ||= File.extname(path)
  postfix = opts[:postfix].to_s

basename = File.basename(path, ".*")
opath = (FileIO.encodePath("#{dir}/#{basename}_#{postfix}#{ext}"))
end