mirror of
https://github.com/strapi/strapi.git
synced 2025-12-04 02:51:26 +00:00
re-creating .gitkeep
This commit is contained in:
parent
31a4925824
commit
6f6c24d133
@ -166,6 +166,8 @@ class LocalStrapiDestinationProvider implements IDestinationProvider {
|
||||
|
||||
await fse.rename(assetsDirectory, backupDirectory);
|
||||
await fse.mkdir(assetsDirectory);
|
||||
// Create a .gitkeep file to ensure the directory is not empty
|
||||
await fse.outputFile(path.join(assetsDirectory, '.gitkeep'), '');
|
||||
|
||||
return new Writable({
|
||||
objectMode: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user