cocreators-ee / excalidraw-alternative-store

Alternative storage options for Excalidraw
MIT License
3 stars 1 forks source link

local storage mode is wrong #67

Open Tiny-Wei opened 1 month ago

Tiny-Wei commented 1 month ago
export class LocalFileStorage implements IStorage {
  async init(): Promise<void> {
    console.log(`Setting up local storage in ${LOCAL_STORAGE_PATH}`)
    if (!fs.existsSync(LOCAL_STORAGE_PATH)) {
      fs.mkdirSync(LOCAL_STORAGE_PATH, {
        recursive: true,
-       mode: '0o750',
+       mode: '0750',
      })
    }
  }
lietu commented 1 month ago

You have provided no justification for why you believe this is wrong. It looks to me like the way octal numbers are represented.