Example #1
0
 public bool CreateNewFile()
 {
     if (Exists() || !_parent.Exists())
     {
         return(false);
     }
     LocalStorage.SetItem(GetCanonicalPath(), WindowEx.Btoa(""));
     return(true);
 }
Example #2
0
 public override void Flush()
 {
     if (!_isDirty)
     {
         return;
     }
     Consolidate();
     LocalStorage.SetItem(_name, WindowEx.Btoa(_data));
     _isDirty = false;
 }