Write a file to the sanbox
1 import std.file: exists; 2 import std.path: buildPath; 3 4 with(immutable Sandbox()) { 5 assert(!buildPath(testPath, "foo.txt").exists); 6 writeFile("foo.txt"); 7 assert(buildPath(testPath, "foo.txt").exists); 8 }
See Implementation
Write a file to the sanbox