You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I suspect current implementation doesn't resist to race conditions. Between the moment you run "stats" and the moment your run "createDirectory", the directory might actually have been created. You should probably add an additional "try/catch" that ignores "405" errors when the creation fails for a subpath, it means that another call already created this subpath.
an ensureDirectory function that took a path and ensured that it existed would be pretty handy ... e.g.
The text was updated successfully, but these errors were encountered: