public void OnBeforeEachTest()
 {
     //Setup the files directory with some test files and folders
     FilesRootDir = appHost.MapProjectPath("~/App_Data/files/");
     if (Directory.Exists(FilesRootDir))
     {
         Directory.Delete(FilesRootDir, true);
     }
     Directory.CreateDirectory(FilesRootDir + "SubFolder");
     Directory.CreateDirectory(FilesRootDir + "SubFolder2");
     File.WriteAllText(Path.Combine(FilesRootDir, "README.txt"), ReadmeFileContents);
     File.WriteAllText(Path.Combine(FilesRootDir, "TESTUPLOAD.txt"), TestUploadFileContents);
 }
        private string ClearFolders()
        {
            var dirPath = appHost.MapProjectPath("~/App_Data");

            if (Directory.Exists(dirPath.AppendPath("mount1")))
            {
                Directory.Delete(dirPath.AppendPath("mount1"), recursive: true);
            }
            if (Directory.Exists(dirPath.AppendPath("mount2")))
            {
                Directory.Delete(dirPath.AppendPath("mount2"), recursive: true);
            }
            return(dirPath);
        }