micropython_stat_path
Get file or directory details from a MicroPython board, including type, size, mode, and modification time. Use to verify path existence and metadata.
Instructions
MicroPython ボード上のパス情報を取得
Args: path: 対象パス
Returns:
ok: 取得に成功したら True
path: 対象パス
kind: file, dir, unknown のいずれか
size_bytes: ファイルサイズ
mode: os.stat() の mode 値
mtime: 更新時刻
error: エラー時のメッセージ
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| kind | Yes | ||
| mode | Yes | ||
| path | Yes | ||
| error | Yes | ||
| mtime | Yes | ||
| size_bytes | Yes |