<p>Hi,</p>
<p>Geany doesn't create the path specified for "Filename", only for "Base path".</p>
<p>So if we specify a path for "Filename" different from "Base path", we get the error:<br><br>
<em><code>Project file could not be written (No such file or directory).</code></em></p>
<p>So the workaround is to create the path by hand ..., eg:<br></p>
<div class="highlight highlight-source-shell"><pre>mkdir -p /home/someone/projects/</pre></div>
<p>So I think it is better for usability to ask users if they want the filename's<br>
path to also be created.</p>
<p>I'm not a C developer, but thanks to the Geany guides I was able to come<br>
up with a solution.</p>
<p>If you also think this change is important, then please review this PR<br>
and guide me on how to make it better.</p>
<p>I only tested on Ubuntu and it worked.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2586'>https://github.com/geany/geany/pull/2586</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Create project's filename path</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2586/files#diff-b78ed74c06369709e71f70b882c7ff52">src/project.c</a>
    (47)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2586.patch'>https://github.com/geany/geany/pull/2586.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2586.diff'>https://github.com/geany/geany/pull/2586.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2586">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3YEOHKH43KJG2KCALSFYPK5ANCNFSM4RLUS2GA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ2HZPCRN7KGSJLCN2DSFYPK5A5CNFSM4RLUS2GKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KOKP46Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2586",
"url": "https://github.com/geany/geany/pull/2586",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>