public bool close() { if (this.quota_user.Length > 0) { Quota.add(this.quota_user, this.quota_tot); } if (this.isopen) { this.fs.Close(); this.isopen = false; if (this.iswrite) { try { if (File.Exists(this.saved_fname)) { File.Delete(this.saved_fname); } File.Move(this.saved_fname + ".ftpdav_uploading", this.saved_fname); } catch (Exception ex) { clib.imsg("simplestream: close exception {0} {1} ", (object)this.saved_fname, (object)ex.Message); return(false); } } } return(true); }
private void quota_add(long bytes) { Quota.add(this.current_user, bytes); }