class Egnyte::Helper

Public Class Methods

normalize_path(path) click to toggle source

removes leading and trailing '/' from folder and file names.

# File lib/egnyte/helper.rb, line 5
def self.normalize_path(path)
  path.gsub(/(^\/)|(\/$)/, '')
end