—
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 :
✅ 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")