public void SaveFileInfo(PoolFile poolFile, string physicalPath) { FileInfo fileInfo = new FileInfo(physicalPath); poolFile.Exists = fileInfo.Exists; poolFile.Length = fileInfo.Length; poolFile.SetPhysicalPath(physicalPath); poolFile.SetCreationTimeUtc(fileInfo.CreationTimeUtc); poolFile.SetLastWriteTimeUtc(fileInfo.LastWriteTimeUtc); // CreateInfoAccessor().Add(poolFile); }
public void Delete(string pool, string id) { PoolFile poolFile = Find(id); // CreateInfoAccessor().Delete(pool, id); // if (poolFile.Exists) { File.Delete(poolFile.GetPhysicalPath()); } }
public PoolFile Find(string id) { PoolFile poolFile = new PoolFile(id); return(poolFile); }