Updated from getPath to getFullPath retaining the leading prefix