Skip to content

Commit

Permalink
update: rename directory update stat function name
Browse files Browse the repository at this point in the history
  • Loading branch information
amedama41 committed Aug 2, 2023
1 parent e9667d4 commit 0fc8a02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/vfiler/context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function Context:reload()
for dir in walk_directories(self.root) do
if dir.opened then
if vim.fn.getftime(dir.path) > dir.time then
dir:update_stat()
dir:update()
dir:open()
end
end
Expand Down
2 changes: 1 addition & 1 deletion lua/vfiler/items/directory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function Directory:open(recursive)
self.opened = true
end

function Directory:update_stat()
function Directory:update()
local stat = fs.stat(self.path)
if not stat then
return
Expand Down

0 comments on commit 0fc8a02

Please sign in to comment.