Constructors
constructor
- new Dir(...path): Dir
-
Returns Dir
Methods
chkSelf
- chkSelf(chk?): boolean
-
Parameters
-
Optional
chk: {
sha1?: string | string[];
size?: number;
}
-
Optional
sha1?: string | string[]
-
Optional
size?: number
Returns boolean
copyTo
- copyTo(dir): void
-
Returns void
exists
- exists(): boolean
-
Returns boolean
getDir
- getDir(..._file): Dir
-
Returns Dir
getHash
- getHash(algorithm?): string
-
Parameters
-
algorithm: string = "sha1"
Returns string
getName
- getName(): string
-
Returns string
getSize
- getSize(): number
-
Returns number
isLink
- isLink(): boolean
-
Returns boolean
isRelative
- isRelative(): boolean
-
Returns boolean
javaPath
- javaPath(): string
-
Returns string
linkFrom
- linkFrom(path): void
-
Parameters
-
path: string | string[] | Dir
Returns void
linkTo
- linkTo(dest): void
-
Parameters
-
dest: string | string[] | Dir
Returns void
sha1
- sha1(expected): boolean
-
Parameters
-
expected: string | string[]
Returns boolean
size
- size(expected): boolean
-
Returns boolean
sysPath
- sysPath(): string
-
Returns string
toString
- toString(): string
-
Returns string
Returns true if the file is in missmatch.