Beispiel #1
0
        public static FileStorage GetStoryChapter(string name, string chapter)
        {
            string dstDir = BaseFolder + name + "/" + chapter;

            FileStorage newFile = new FileStorage(dstDir);

            return newFile;
        }
Beispiel #2
0
        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;
        }