|
|
@@ -271,7 +271,7 @@ function pgsh(ev) {
|
|
|
// Calculate a destination's path with respect to the current folder.
|
|
|
var resolveAbsPath = function(dest) {
|
|
|
var parts = dest.trim().split('/')
|
|
|
- var absolute = dest.startsWith('/') || self.cwd == '/'
|
|
|
+ var absolute = dest.substring(0, 1) == '/' || self.cwd == '/'
|
|
|
var path = absolute ? [''] : self.cwd.split('/')
|
|
|
parts.forEach(function(part) {
|
|
|
if (part == '..' && path.length > 1) { path.pop() }
|