As the name implies, portablePath is the path in portable form, no OS form. You should use Path.fromPortableString to convert it.