diff --git a/Plugins/NyaFsFiles/Commands/LoadDir.cs b/Plugins/NyaFsFiles/Commands/LoadDir.cs index 2672bf9..45294e8 100644 --- a/Plugins/NyaFsFiles/Commands/LoadDir.cs +++ b/Plugins/NyaFsFiles/Commands/LoadDir.cs @@ -154,7 +154,7 @@ private void LoadFile(Dir dir, string path) else { var Content = System.IO.File.ReadAllBytes(DetectedFilename); - var File = new File(Path, User, Group, FileMode, Content); + var File = new File(FsPath, User, Group, FileMode, Content); dir.Items.Add(File); Log.Write(0, $"Added {FsPath}!"); @@ -188,6 +188,8 @@ private bool LoadDirectory(Dir dir, string path) NDir.Modified = DateTime.Now; Log.Write(2, $"Updated {FsPath}!"); + + LoadDirectory(NDir, Dir); } else Log.Warning(0, $"Cannot update {FsPath}: not directory!");