src/Project/Project.vala
authorAlan <alan@roojs.com>
Fri, 7 Oct 2022 08:03:08 +0000 (16:03 +0800)
committerAlan <alan@roojs.com>
Fri, 7 Oct 2022 08:03:08 +0000 (16:03 +0800)
src/Project/Project.vala

index 4b8ac13..f8a4b0a 100644 (file)
@@ -572,6 +572,16 @@ namespace Project {
                        this.on_changed();
                }
                
+               public void deleteFile(JsRender.JsRender pfile)
+               {
+                       this.files.unset(pfile.path); // duplicate check?
+                       GLib.FileUtils.unlink(pfile.path);
+                       
+               
+               }
+               
+               
+               
                public void add(string path, string type)
                {
                        this.paths.set(path,type);