public IFileObject ResolveFile(string name) { if (name.Length > 0) { name = FormatPath(name); } Query query = new Query(TableName, new QueryConditionNode((QField)KeyFieldName, Conditions.Equal, (QConst)name)); IDictionary fileData = Dalc.LoadRecord(query); if (fileData != null) { return((IFileObject)FileSystemHelper.SetFileProperties(new DalcFileObject(this), fileData)); } else { IFileObject fileObj = new DalcFileObject(name, FileType.Imaginary, this); if (name.Length == 0) { fileObj.CreateFolder(); } return(fileObj); } }
public DalcFileContent(DalcFileObject file) { _File = file; }
public IDictionary SetFileDictionaryValues(IDictionary data, DalcFileObject file) { return(SetValues(data, file, FileObjectMap)); }
public DalcFileObject SetFileProperties(DalcFileObject file, IDictionary data) { return((DalcFileObject)SetProperties(file, data, FileObjectMap)); }
/// <summary> /// Method saves file /// </summary> /// <param name="fileObject">File object</param> public void SaveFile(DalcFileObject fileObject) { SaveInternal(FileSystemHelper.SetFileDictionaryValues(new Hashtable(), fileObject), fileObject, TableName, KeyFieldName); }