Show all local data files.#

This script lists all data files synchronized on this local machines. Files are not necessarily downloaded. They will be automatically downloaded if you need to open them.

Run from command line:

`bash sda list `

Typically returns something like :

```
  1. T327

  2. T330

  3. T333

  4. T334

  5. T336

  6. T339

  7. T341

  8. T343

  9. T344

  10. T345

  11. T346

  12. T348

  13. T358

  14. T359

  15. T360

  16. T362

  17. T363

  18. T364

  19. T365

✅ Found 135 tests in total ```

The script uses sda.api.load.list_all_files() which looks into all the Data Sharepoints synchronized on this machine either by having clicked the “Sync” (recommended) or “Add a Shortcut to my Drive” (not recommended, but works) buttons from the online Sharepoint / Documents page.

Data Sharepoints local links must be defined in the local “~/sda.json” configuration file.

Then, files shall be loaded using sda.api.load.load_test() or sda.api.load.load_tests() e.g. with:

`python from sda.api.load import load_test df = load_test("T327") `

OR

`python from sda.api.load import load_tests df = load_tests(["T327", "T330"]) `

from sda.api import list_all_tests

if __name__ == "__main__":
    # See documentation above for the CLI version of this
    files = list_all_tests()
    print(f"✅ Found {len(files)} files in total")