Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロジェクト内のすべてのファイルを解析したいと思います。|project://p2-SnakesAndLadders| のような場所があるとします。プロジェクト内のファイルに移動するにはどうすればよいでしょうか?
場所にはlsフィールドがあるため、次のように入力できます
ls
|project://p2-SnakesAndLadders|.ls
プロジェクトのルート レベルにあるすべてのファイルとディレクトリをリストとして取得します。次に、関数isFileandを使用してisDirectory(どちらもプレリュードに含まれているため、デフォルトで使用可能です)、ファイルとディレクトリの場所を区別できます。
isFile
isDirectory