path property

String path
final

The path to the asset relative to the root directory of package.

Source (i.e. read from disk) and generated (i.e. the output of a Builder) assets all have paths. Even intermediate assets that are generated and then consumed by later transformations will still have a path used to identify it.

Asset paths always use forward slashes as path separators, regardless of the host platform. Asset paths will always be within their package, that is they will never contain "../".

Implementation

final String path;