mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 04:19:30 +08:00
14 lines
No EOL
331 B
Text
14 lines
No EOL
331 B
Text
import * as fs from 'graceful-fs';
|
|
import resolvePath from '../utils/resolvePath';
|
|
|
|
export function exists () {
|
|
const target = resolvePath( arguments );
|
|
|
|
return new Promise( fulfil => {
|
|
fs.exists( target, exists => fulfil( exists ) );
|
|
});
|
|
}
|
|
|
|
export function existsSync () {
|
|
return fs.existsSync( resolvePath( arguments ) );
|
|
} |