getResourcePath() for folders in a plugin I have a plugin that has an folder inside of it's resources. I need to iterate through those files.

To get the path, I tried craft()-&gt;resources-&gt;getResourcePath('folder-name'), but it seems to only succeed if the file exists, not a folder.

I want the folder so I can use IOHelper::getFolderContents($folder).

Do I just need to build the path myself ($folder = craft()-&gt;path-&gt;getPluginsPath() . 'myplugin/resources/svg/';), or am I missing something?
The ResourcesService getResourcePath method will only work for files.

The PathService getResourcesPath method will get you the resources path, after which you can append your folder name.

$folder = craft()-&gt;path-&gt;getResourcesPath() . 'svg/';