Skip to content
Brian Wandell edited this page Jun 24, 2016 · 12 revisions

There are tools to help you navigate the remote paths.

List the remote paths

The listRemotePaths function lists just the paths that are inside of the current remote path.

rd = RdtClient('isetbio');
rd.crp('/resources/scenes');
rd.listRemotePaths('print',true);

If you want the whole set of remote paths in the repository, not just within the subpath, you can use the 'all' parameter.

rd.listRemotePaths('print',true,'all',true);

List the artifacts in all the subdirectories of the current remote path

This returns every files as an artifact

rd = RdtClient('isetbio');
rd.crp('/resources/scenes/hyperspectral/stanford_database/landscape');
a = rd.listArtifacts('print',true);

If you just want the 'mat' files or the 'jpg' files use

a = rd.listArtifacts('print',true,'type','jpg');

The array of artifacts look like this:

>> a(1)

ans = 

      artifactId: 'SanFranciscoPFilter'
     description: ''
       localPath: ''
            name: ''
      remotePath: 'resources/scenes/hyperspectral/stanford_database/landscape'
    repositoryId: 'isetbio'
            type: 'jpg'
             url: [1x149 char]
         version: '1'

You can download one of them

 rgb = rd.readArtifact(a(1),'type','jpg');