Skip to content

createFileWithDummy

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

지정된 크기의 파일을 바이트 단위로 만듭니다.

Parameters

이름타입필수기본값
filePathstring
File or directory path
sizenamednumber
Size of the file to be created (Dummy data is filled as much as the given size)

named 표시가 있는 파라미터는 Dart에서는 named 파라미터, Python에서는 키워드 인자로 전달됩니다.

Returns

Promise::void

Examples

javascript
await createFileWithDummy('/home/user/test.txt', 100000);
dart
await createFileWithDummy('/home/user/test.txt', size: 100000);
python
createFileWithDummy('/home/user/test.txt', 100000)

Released under the MIT License