Why are write permissions required?
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3066702. -->
Reported by: [leon kessler](https://www.drupal.org/user/595374)
>>>
<p>I just ran into an issue where I was unable to run a migration from a CSV file deployed via Git to an Acquia cloud server.<br>
This was due to file permission issues.</p>
<p>I discovered that this is due to the migrate_source_csv module requiring write access mode for the csv file.</p>
<p><a href="https://git.drupalcode.org/project/migrate_source_csv/blob/8.x-3.x/src/Plugin/migrate/source/CSV.php#L262">https://git.drupalcode.org/project/migrate_source_csv/blob/8.x-3.x/src/Plugin/migrate/source/CSV.php#L262</a></p>
<pre>return Reader::createFromStream(fopen($this->configuration['path'], 'r+'));</pre><p>My question here is, why is write permission required? When would we ever want to modify the file? Is there a reason we cannot use <code>'r'</code> (as this would work fine on Acquia).</p>
<p>Thanks</p>
issue