This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fichiers): ajoute automatiquement les dossiers utilisés pour stoc…
…ker les fichiers (#913)
- Loading branch information
vmaubert
authored
Mar 9, 2022
1 parent
25fff3b
commit de7dec8
Showing
3 changed files
with
52 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import dirCreate from '../tools/dir-create' | ||
import { DOCUMENTS_REPERTOIRES } from '../types' | ||
|
||
export const filesInit = async () => { | ||
await dirCreate('files').catch() | ||
|
||
for (const documentsRepertoire of DOCUMENTS_REPERTOIRES) { | ||
await dirCreate(`files/${documentsRepertoire}`).catch() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters