import { access , constants , symlink } from "fs" ; import { callback } from "awaiting" ; import { rootSymlink } from "@cocalc/project/data" ; export default async function init ( ) { try { await callback ( access , rootSymlink , constants . F_OK ) ; } catch ( _err ) { await callback ( symlink , "/" , rootSymlink ) ; } }