MCPcopy Create free account
hub / github.com/careercup/CtCI-6th-Edition-JavaScript / File

Function File

chapter07/7.11 - File System/fileSystem.js:32–36  ·  view source on GitHub ↗
(name, content)

Source from the content-addressed store, hash-verified

30};
31
32var File = function(name, content) {
33 this.type = 'file';
34 this.name = name;
35 this.content = content !== undefined ? content : null;
36};
37
38var FileSystem = function(name) {
39 this.folder = new Folder(name);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected