src/metrics_calc/metrics_calc.rb
# Fix the given directory to be correctly formated for ruby
Fix the given directory to be correctly formated for ruby
Fix the given directory to be correctly formated for ruby
def fixDir(folder)
    folder = checkForwardSlash(folder)
    if folder[0] == '~' 
        folder = "#{checkForwardSlash(Dir.home)}#{folder[1..-1]}"
    end
    return folder
end
def fixDir ( folder ) folder = checkForwardSlash ( folder ) if folder [ 0 ] == '~' folder = "#{checkForwardSlash(Dir.home)}#{folder[1..-1]}" end return folder end
Fix the given directory to be correctly formated for ruby
Fix the given directory to be correctly formated for ruby
# Ensure ruby handles the ~ symbol properly
folder
<not_specific>