Added the `getRealPath` method