foo-webview-sdk
    Preparing search index...

    Interface FileListParams

    Parameters for file.list. List the files and subdirectories of a directory. A path that does not exist fails with NOT_FOUND, and one that is not a directory with INVALID_PATH.

    interface FileListParams {
        path: string;
        pattern?: string;
        recursive?: boolean;
    }
    Index
    path: string

    Directory to list.

    pattern?: string

    Filter for files; directories are always listed. Only *, *.* and a single extension such as *.flac are understood, and nothing is refused: a pattern that does not start with *. (song*, ?.txt) matches every file, while a *.ext pattern is compared, ignoring case, with the text from the file name's last dot on, so *.{flac,mp3} matches nothing and no *.ext matches a file without an extension.

    "*"
    
    recursive?: boolean

    Walk the subdirectories as well; the entries are then full paths instead of names. A subdirectory that cannot be read makes the call fail with OPERATION_FAILED.

    false