You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Desktop: Fixes #1425: Improved handling of images when using external editor, so that it works in Atom, VSCode and Typora
This commit is contained in:
@@ -38,6 +38,18 @@ class FsDriverBase {
|
||||
}
|
||||
}
|
||||
|
||||
async removeAllThatStartWith(dirPath, filenameStart) {
|
||||
if (!filenameStart || !dirPath) throw new Error('dirPath and filenameStart cannot be empty');
|
||||
|
||||
const stats = await this.readDirStats(dirPath);
|
||||
|
||||
for (const stat of stats) {
|
||||
if (stat.path.indexOf(filenameStart) === 0) {
|
||||
await this.remove(dirPath + '/' + stat.path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = FsDriverBase;
|
||||
Reference in New Issue
Block a user