MCPcopy Index your code
hub / github.com/11ty/dev-server / isFileInDirectory

Method isFileInDirectory

server.js:213–217  ·  view source on GitHub ↗
(dir, file)

Source from the content-addressed store, hash-verified

211 }
212
213 isFileInDirectory(dir, file) {
214 let absoluteDir = TemplatePath.absolutePath(dir);
215 let absoluteFile = TemplatePath.absolutePath(file);
216 return absoluteFile.startsWith(absoluteDir);
217 }
218
219 getOutputDirFilePath(filepath, filename = "") {
220 let computedPath;

Callers 1

getOutputDirFilePathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected