change method in ios on return directory to respect the path of the plugin File ...