function initialize() {
        const pathSeparator = SA.nodeModules.path.sep
        const dir = filename.split(pathSeparator)
        if(dir.length > 1) {
            dir.pop()
        }
        const dirPath = dir.join(pathSeparator)
        if(!SA.nodeModules.fs.existsSync(dirPath)) {
            SA.nodeModules.fs.mkdirSync(dirPath, {recursive: true})
        }
        writeFile([])
    }
Checks that the directory exists and creates an initial file for storage