Get assets folder code

How can I get the assets folder code of the module being executed? I only want either 2a5607e6 or assets/2a5607e6. Yii::app()->assetManager->publish returns the absolute URL and I don’t want this. Note: I know I can just substring, but I’m asking if there is a better way.

Use this method to get the path to the published asset: