From c7061e8e457a04a9dcecfd7eeb0db7d9e753ee31 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 30 Jun 2017 11:04:27 -0400 Subject: file-infecting viruses --- ShiftOS.Objects/ShiftFS.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ShiftOS.Objects/ShiftFS.cs') diff --git a/ShiftOS.Objects/ShiftFS.cs b/ShiftOS.Objects/ShiftFS.cs index 45cdb14..bc08880 100644 --- a/ShiftOS.Objects/ShiftFS.cs +++ b/ShiftOS.Objects/ShiftFS.cs @@ -170,7 +170,7 @@ namespace ShiftOS.Objects.ShiftFS public static event Action DirectoryDeleted; public static event Action FileWritten; public static event Action FileDeleted; - + public static event Action FileRead; public static void CreateDirectory(string path) { @@ -206,7 +206,7 @@ namespace ShiftOS.Objects.ShiftFS dir = dir.FindDirectoryByName(pathlist[i]); } var file = dir.FindFileByName(pathlist[pathlist.Length - 1]); - + FileRead?.Invoke(path); return file.Data; } -- cgit v1.2.3