Skip to content

Commit 0bee4b1

Browse files
committed
WIP
1 parent 7bd8300 commit 0bee4b1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lua/plenary/path.lua

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -542,15 +542,6 @@ function Path:rename(opts)
542542
-- uses stat)
543543
assert(self_lstat, ("%s: %s"):format(errmsg, self.filename))
544544

545-
-- BUG
546-
-- handles `.`, `..`, `./`, and `../`
547-
if opts.new_name:match "^%.%.?/?\\?.+" then
548-
opts.new_name = {
549-
uv.fs_realpath(opts.new_name:sub(1, 3)),
550-
opts.new_name:sub(4),
551-
}
552-
end
553-
554545
local new_path = Path:new(opts.new_name)
555546
new_lstat, errmsg = uv.fs_lstat(new_path.filename)
556547

0 commit comments

Comments
 (0)