Unknown asset error


#1

hey,

Today, I’ve tried using the Assets API for the first time
I have a text file, say <project>/private/foo.txt, and I simply try to get it using Assets.getText('foo.txt')
I get this error in return: Error: Unknown asset: foo.txt

any advice?

UPDATE:

nevermind, I overlooked the fact I was using it inside a package