Function isPackagePath

Check if a file is in the current path

bool isPackagePath (
  string fullPath,
  string packagePath
);

Example

Check project paths

"../../something.d".isPackagePath("/Users/trial/").should.equal(false);
"/Users/trial/trial_.d".isPackagePath("/Users/trial/").should.equal(false);
"/Users/trial/runner.d".isPackagePath("/Users/trial/").should.equal(true);
"/Users/trial/.trial/runner.d".isPackagePath("/Users/trial/").should.equal(false);
"C:\\Users\\trial\\runner.d".isPackagePath("C:/Users/trial/").should.equal(true);