본문으로 건너뛰기
Dart에서는 제공하지 않습니다이 함수는 Dart 패키지에 없습니다. 아래 문서는 JavaScript, Python 기준입니다.

isFileHidden

Node.js 런타임 필요 ('qsu/node')

지정된 경로에 있는 파일 또는 폴더가 숨김 파일인지 확인합니다. Windows의 시스템 숨김 파일과 Linux, macOS 또는 기타 운영 체제의 .(점)의 유무를 확인합니다.

Windows가 파일 속성을 가져오지 못하면, 해당 파일이 숨김 파일이 아니라고 가정합니다.

Parameters

이름타입필수기본값
filePathstringstr
isWindowsbooleanboolfalseFalse
Whether the target operating system to be checked is Windows

Returns

Promise<boolean>

bool

Examples

javascript
await isFileHidden('text.txt'); // false
await isFileHidden('.hiddenFile'); // true
await isFileHidden('.hiddenFile', true); // false (Files with no hidden attribute applied in Windows)
python
isFileHidden('text.txt') # False
isFileHidden('.hiddenFile') # True
isFileHidden('.hiddenFile', True) # False (Files with no hidden attribute applied in Windows)

Released under the MIT License