public object Post(RevertFiles request) { VirtualFiles.DeleteFolder(Config.RootDirectory); foreach (var file in VirtualFiles.GetDirectory("src").GetAllMatchingFiles("*.*")) { VirtualFiles.WriteFile(file, file.VirtualPath.Replace("src/", Config.RootDirectory)); } return(new RevertFilesResponse()); }