plugins/object_storage/app/services/service_layer/object_storage_service.rb
# remove duplicate slashes that might have been created by naive path
remove duplicate slashes that might have been created by naive path
remove duplicate slashes that might have been created by naive path
def sanitize_path(path)
      path = path.gsub(/^\/+/, '/')
      path.sub(/^\//, '').sub(/\/$/, '')
    end
def sanitize_path ( path ) path = path . gsub ( / ^ \/ + / , '/' ) path . sub ( / ^ \/ / , '' ) . sub ( / \/ $ / , '' ) end
remove duplicate slashes that might have been created by naive path
remove duplicate slashes that might have been created by naive path
# joining (e.g. `foo + "/" + bar`) # remove leading and trailing slash
path
<not_specific>