forked from akai/readest
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { join } from '@tauri-apps/api/path';
|
||||
import { isContentURI, isFileURI, isValidURL } from './misc';
|
||||
|
||||
export const getFilename = (fileOrUri: string) => {
|
||||
@@ -28,3 +29,7 @@ export const getDirPath = (filePath: string) => {
|
||||
parts.pop();
|
||||
return parts.join('/');
|
||||
};
|
||||
|
||||
export const joinPaths = async (...paths: string[]) => {
|
||||
return await join(...paths);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user