forc_util::fs_locking

Function is_file_dirty

Source
pub fn is_file_dirty<X: AsRef<Path>>(path: X) -> bool
Expand description

Checks if the specified file is marked as “dirty”. This is used to prevent changing files that are currently open in an editor with unsaved changes.

Returns true if a corresponding “dirty” flag file exists, false otherwise.