Obtaining local file paths for assets via API

Hi there,

For a while now I've been trying to figure out how to pull a list of a certain type of asset from the API for use in my local file-checking tools (to ensure local integrity).

I've been following the examples on the github wiki, but they're really limited in scope and I've not been able to find what I'm looking for, which is the text string contents of the "latest file" field which is sg_latest_file in the API, I've tried using local_file, local_path_windows, local_storage, and other fields as well to try and find out where the filepath strings are being stored, but I just can't find them anywhere.

Here's the part of the script I've been using;

fields = ['id', 'code', 'local_storage']
filters = [
result = sg.find('Asset', filters, fields)
pprint (result)

 No matter what fields I'm trying to get information from, all I ever get returned is the code, id, and type.

I'm assuming there's something I'm missing?


Thanks for any help



Please sign in to leave a comment.