Newer
Older
dub_jkp / test / issue1136-temp-copy-files / app.d
@andre2007 andre2007 on 6 Nov 2018 286 bytes Fix temp copy files
  1. /+ dub.sdl:
  2.  
  3. name "app"
  4. dependency "mylib" path="./mylib"
  5. +/
  6.  
  7. import std.exception: enforce;
  8. import std.file: exists, thisExePath;
  9. import std.path: dirName, buildPath;
  10.  
  11. void main()
  12. {
  13. string filePath = buildPath(thisExePath.dirName, "helloworld.txt");
  14. enforce(filePath.exists);
  15. }