Duplicated method, see [line 101](https://github.com/radnan/composer/blob/4fc5d0f4bf3ea75f40d3e40bbfa8cbb367d5f402/src/Composer/Util/RemoteFilesystem.php#L101)