MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / createDir

Function createDir

runtime/src/js/misc.js:20–24  ·  view source on GitHub ↗
(dirName)

Source from the content-addressed store, hash-verified

18// This function is used to check whether directory is present or not
19// if not present then create it recursively
20const createDir = (dirName) => {
21 if (!fs.existsSync(dirName)) {
22 fs.mkdirSync(dirName, {recursive: true});
23 }
24};
25
26const insideFlatpak = () => {
27 return platform() === 'linux' && fs.existsSync('/.flatpak-info');

Callers 1

getLocalAppDataPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected