File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 3636use ElementaryFramework \FireFS \Events \FileSystemEntityModifiedEvent ;
3737use ElementaryFramework \FireFS \Events \FileSystemEntityDeletedEvent ;
3838use ElementaryFramework \FireFS \Events \FileSystemEntityCreatedEvent ;
39- use ElementaryFramework \FireFS \Exceptions \FileSystemEntityNotFoundException ;
4039use ElementaryFramework \FireFS \Exceptions \FileSystemWatcherException ;
4140use ElementaryFramework \FireFS \Listener \IFileSystemListener ;
4241
@@ -417,7 +416,7 @@ private function _watchFile(string $_path)
417416 } else {
418417 $ this ->_addForWatch ($ _path );
419418 if ($ this ->_listener ->onAny (new FileSystemEntityCreatedEvent ($ path ))) {
420- $ this ->_listener ->onModified (new FileSystemEntityCreatedEvent ($ path ));
419+ $ this ->_listener ->onCreated (new FileSystemEntityCreatedEvent ($ path ));
421420 }
422421 }
423422 } else {
You can’t perform that action at this time.
0 commit comments