Skip to content

Behaviour of watch_file on FreeBSD is different #66

@iblislin

Description

@iblislin

Revise.jl/src/Revise.jl

Lines 188 to 200 in 5754f39

function watch_files_via_dir(dirname)
watch_file(dirname) # this will block until there is a modification
latestfiles = String[]
wf = watched_files[dirname]
for file in wf.trackedfiles
path = joinpath(dirname, file)
if mtime(path) + 1 >= floor(wf.timestamp) # OSX rounds mtime up, see #22
push!(latestfiles, path)
end
end
updatetime!(wf)
latestfiles
end

On FreeBSD modifying a existed file which located at dir will not being caught by watch_dir(dir).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions