We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd8300 commit 0bee4b1Copy full SHA for 0bee4b1
1 file changed
lua/plenary/path.lua
@@ -542,15 +542,6 @@ function Path:rename(opts)
542
-- uses stat)
543
assert(self_lstat, ("%s: %s"):format(errmsg, self.filename))
544
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
-
554
local new_path = Path:new(opts.new_name)
555
new_lstat, errmsg = uv.fs_lstat(new_path.filename)
556
0 commit comments