public override Stream GetMaterialContent(string contentID) { DestFileInfo.NullCheck("DestFileInfo"); ExceptionHelper.FalseThrow <FileNotFoundException>(File.Exists(DestFileInfo.FullName), Resource.FileNotFound, DestFileInfo.FullName); return(DestFileInfo.OpenRead()); }
public override void SaveMaterialContent(MaterialContent content) { SourceFileInfo.NullCheck("SourceFileInfo"); DestFileInfo.NullCheck("DestFileInfo"); if (CheckSourceFileExists) { ExceptionHelper.FalseThrow(SourceFileInfo.Exists, string.Format(Resource.FileNotFound, SourceFileInfo.Name)); } MoveFile(SourceFileInfo, DestFileInfo); }
public override void DeleteMaterialContent(MaterialContent content) { DestFileInfo.NullCheck("DestFileInfo"); DeleteFile(DestFileInfo); }
public override bool ExistsContent(string contentID) { DestFileInfo.NullCheck("DestFileInfo"); return(DestFileInfo.Exists); }