List the files inside a dir where path is relative to tensorflowjs/. Args: path: a string path to a resource directory relative to tensorflowjs/. Returns: A list of files inside that directory. Raises: IOError: If the path is not found, or the resource can't be read.
(path)
| 38 | |
| 39 | |
| 40 | def list_dir(path): |
| 41 | """List the files inside a dir where path is relative to tensorflowjs/. |
| 42 | |
| 43 | Args: |
| 44 | path: a string path to a resource directory relative to tensorflowjs/. |
| 45 | |
| 46 | Returns: |
| 47 | A list of files inside that directory. |
| 48 | |
| 49 | Raises: |
| 50 | IOError: If the path is not found, or the resource can't be read. |
| 51 | """ |
| 52 | path = os.path.join(os.path.dirname(os.path.abspath(__file__)), path) |
| 53 | return os.listdir(path) |
nothing calls this directly
no test coverage detected
searching dependent graphs…