aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Objects/ShiftFS.cs
diff options
context:
space:
mode:
authorwilliam341 <[email protected]>2017-05-02 17:52:10 -0700
committerwilliam341 <[email protected]>2017-05-02 17:52:10 -0700
commit14c5ba260fad4a9751630c5f5fc322bf7963602b (patch)
treec6170e2d3b6e540da4f508ed1c98297d6ab3eaec /ShiftOS.Objects/ShiftFS.cs
parent596db1d5bc7033c9624390c6c2967c161aaf969a (diff)
downloadshiftos_thereturn-14c5ba260fad4a9751630c5f5fc322bf7963602b.tar.gz
shiftos_thereturn-14c5ba260fad4a9751630c5f5fc322bf7963602b.tar.bz2
shiftos_thereturn-14c5ba260fad4a9751630c5f5fc322bf7963602b.zip
fix some nres
Diffstat (limited to 'ShiftOS.Objects/ShiftFS.cs')
-rw-r--r--ShiftOS.Objects/ShiftFS.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/ShiftOS.Objects/ShiftFS.cs b/ShiftOS.Objects/ShiftFS.cs
index 713bd17..c2121f0 100644
--- a/ShiftOS.Objects/ShiftFS.cs
+++ b/ShiftOS.Objects/ShiftFS.cs
@@ -230,7 +230,11 @@ namespace ShiftOS.Objects.ShiftFS
if (!FileExists(path))
{
- dir.AddFile(new File(pathlist[pathlist.Length - 1], Encoding.UTF8.GetBytes(contents), false, Permissions.All));
+ try
+ {
+ dir.AddFile(new File(pathlist[pathlist.Length - 1], Encoding.UTF8.GetBytes(contents), false, Permissions.All));
+ }
+ catch { }
}
else
{