get locator from file path