Function
chmodAsync
(path: fs.PathLike, mode: fs.Mode)
Source from the content-addressed store, hash-verified
| 877 | } |
| 878 | |
| 879 | export async function chmodAsync(path: fs.PathLike, mode: fs.Mode): Promise<void> { |
| 880 | return new Promise<void>((resolve, reject) => { |
| 881 | fs.chmod(path, mode, (err: NodeJS.ErrnoException | null) => { |
| 882 | if (err) { |
| 883 | return reject(err); |
| 884 | } |
| 885 | return resolve(); |
| 886 | }); |
| 887 | }); |
| 888 | } |
| 889 | |
| 890 | export function removePotentialPII(str: string): string { |
| 891 | const words: string[] = str.split(" "); |
Tested by
no test coverage detected