public static FileStorage GetStoryChapter(string name, string chapter) { string dstDir = BaseFolder + name + "/" + chapter; FileStorage newFile = new FileStorage(dstDir); return newFile; }
public static bool SaveFile(byte[] data, string name, string chapter) { if (data == null) { return false; } if (CheckFileExsit(name, chapter)) { return false; } string dstDirName = BaseFolder + name + "/" + chapter; FileStorage newFile = new FileStorage(dstDirName); newFile.WriteContent(data); return true; }