# Method Filesystem.Monitor.basic()->Monitor()->file_deleted()

Method file_deleted

  ``protected` `void` file_deleted(`string` `path`, `Stdio.Stat`|`void` `old_st`)`

Description

  File deletion callback.

Parameter `path`

  Path of the new file or directory that has been deleted.

Parameter `old_st`

  Stat for the file prior to deletion (if known). Note that this argument is not passed along to top level function.

  This function is called when either a monitored path has stopped to exist, or when a file or directory has been deleted from a monitored directory.

  Called by check() and check_monitor().