You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Mobile: Fixed mobile build
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { resolve as nodeResolve } from 'path';
|
||||
import FsDriverBase, { Stat } from './fs-driver-base';
|
||||
import time from './time';
|
||||
|
||||
const md5File = require('md5-file/promise');
|
||||
const fs = require('fs-extra');
|
||||
|
||||
export default class FsDriverNode extends FsDriverBase {
|
||||
@@ -206,4 +206,16 @@ export default class FsDriverNode extends FsDriverBase {
|
||||
return resolvedPath;
|
||||
}
|
||||
|
||||
public async md5File(path: string): Promise<string> {
|
||||
return md5File(path);
|
||||
}
|
||||
|
||||
public async tarExtract(options: any) {
|
||||
await require('tar').extract(options);
|
||||
}
|
||||
|
||||
public async tarCreate(options: any, filePaths: string[]) {
|
||||
await require('tar').create(options, filePaths);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user