Skip to content

useIsDirectory

Introduction

判断当前路径是否是目录

Basic Usage

ts
import { useIsDirectory } from '@flypeng/tool/node';

Type Declaration

ts
/**
 * 判断当前路径是否是目录
 * @param path
 * @returns
 */
declare const useIsDirectory: (path: string) => boolean;

Released under the MIT License.