<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mkdir() failing [SOLVED]]]></title><description><![CDATA[<p dir="auto">When I call mkdir() as follows:<br />
int e = mkdir(dir, S_IRWXU|S_IRWXG);<br />
where:<br />
char dir[] = "~/.cfg";</p>
<p dir="auto">I get the error "No such file or directory"</p>
<p dir="auto">Why is this?<br />
(QTCreator 2.4.1, Ubuntu 12.04)</p>
]]></description><link>https://forum.qt.io/topic/40329/mkdir-failing-solved</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 21:17:59 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/40329.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Apr 2014 12:56:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mkdir() failing [SOLVED] on Tue, 15 Apr 2014 13:52:06 GMT]]></title><description><![CDATA[<p dir="auto">ok, thanks for the tip.</p>
]]></description><link>https://forum.qt.io/post/223574</link><guid isPermaLink="true">https://forum.qt.io/post/223574</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 15 Apr 2014 13:52:06 GMT</pubDate></item><item><title><![CDATA[Reply to Mkdir() failing [SOLVED] on Tue, 15 Apr 2014 13:04:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">This question is not really Qt related but more linux related. AFAIK ~ is not expanded so the path is relative and doesn't exist.</p>
<p dir="auto">Want to do it the Qt way ? Look at QDir and QStandardPaths</p>
<p dir="auto">Hope it helps</p>
]]></description><link>https://forum.qt.io/post/223566</link><guid isPermaLink="true">https://forum.qt.io/post/223566</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 15 Apr 2014 13:04:39 GMT</pubDate></item></channel></rss>