<?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[Directory.hasWriteAccess()]]></title><description><![CDATA[<p dir="auto">hmm, I must be doing it wrong I think...</p>
<p dir="auto">so I say this:</p>
<pre><code>readCheck = FileSystem.fromAbsolutePath(FilePathValue.get("text"));

Console.print("is a directory:" + readCheck.isDirectory());
Console.print("read only is returning:" + readCheck.hasWriteAccess());
</code></pre>
<p dir="auto">Which returns a directory, but it says its writable...when I've set the directory up to be read-only</p>
<p dir="auto">what am I doing wrong?</p>
]]></description><link>https://forum.hise.audio/topic/14798/directory-haswriteaccess</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 17:59:32 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/14798.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Jun 2026 14:55:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 15:43:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> yeah that seems more comprehensive, its more or less doing under the hood what Im doing in HISEScript... so both approaches have the advantage of getting a result back for the plugin itself (no matter how the user has set up to run it..)</p>
<p dir="auto">Thanks for looking and confirming what I'd found.</p>
]]></description><link>https://forum.hise.audio/post/120777</link><guid isPermaLink="true">https://forum.hise.audio/post/120777</guid><dc:creator><![CDATA[Lindon]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:43:39 GMT</pubDate></item><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 15:39:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> Claude came back with <a href="https://github.com/davidhealey/HISE/commit/fa66399071837bb65b0c44bb79dafae8f28fd908" rel="nofollow ugc">this</a>, I haven't tested it.</p>
]]></description><link>https://forum.hise.audio/post/120776</link><guid isPermaLink="true">https://forum.hise.audio/post/120776</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 15:37:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> yeah that works _ and Im guessing it works for all occasions...its a cludge but it works..</p>
]]></description><link>https://forum.hise.audio/post/120775</link><guid isPermaLink="true">https://forum.hise.audio/post/120775</guid><dc:creator><![CDATA[Lindon]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:37:53 GMT</pubDate></item><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 15:22:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> well my work around <em>might</em> be;</p>
<p dir="auto">to write a file to the folder - and if it fails then its not writable...</p>
<pre><code>readCheck = FileSystem.fromAbsolutePath(FilePathValue.get("text")+ "\\test.txt");
testResult = readCheck.writeString("sample folder");
Console.print("and test result is = " + testResult);
</code></pre>
]]></description><link>https://forum.hise.audio/post/120774</link><guid isPermaLink="true">https://forum.hise.audio/post/120774</guid><dc:creator><![CDATA[Lindon]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:22:38 GMT</pubDate></item><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 15:20:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> So the JUCE function <code>hasWriteAccess</code> is only checking for the Read-only folder flag in the general tab, it completely ignores the ACL permissions.</p>
<p dir="auto">And this flag seems to only affect files and sub-folders not the folder itself.</p>
<p dir="auto"><img src="/assets/uploads/files/1780327175042-dc36061e-2707-4813-ab97-c6f8c459c997-image.png" alt="dc36061e-2707-4813-ab97-c6f8c459c997-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I'll ask Claude if there's an easy fix.</p>
]]></description><link>https://forum.hise.audio/post/120773</link><guid isPermaLink="true">https://forum.hise.audio/post/120773</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:20:19 GMT</pubDate></item><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 15:16:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> okey-dokey...</p>
]]></description><link>https://forum.hise.audio/post/120772</link><guid isPermaLink="true">https://forum.hise.audio/post/120772</guid><dc:creator><![CDATA[Lindon]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:16:27 GMT</pubDate></item><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 15:12:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> Same result here, looking for a solution now.</p>
]]></description><link>https://forum.hise.audio/post/120771</link><guid isPermaLink="true">https://forum.hise.audio/post/120771</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:12:07 GMT</pubDate></item><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 15:08:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> I denied access for every group, and when I try to use the File Explorer to create a sub-folder I get this (correctly):</p>
<p dir="auto"><img src="/assets/uploads/files/1780326526814-7947acc6-6720-4cc5-8415-09d2896e9bd2-image.png" alt="7947acc6-6720-4cc5-8415-09d2896e9bd2-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hise.audio/post/120768</link><guid isPermaLink="true">https://forum.hise.audio/post/120768</guid><dc:creator><![CDATA[Lindon]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:08:57 GMT</pubDate></item><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 15:07:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> I shall test and report back</p>
<p dir="auto">Did you also deny write permission for Users?</p>
]]></description><link>https://forum.hise.audio/post/120767</link><guid isPermaLink="true">https://forum.hise.audio/post/120767</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:07:38 GMT</pubDate></item><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 15:06:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> said in <a href="/post/120765">Directory.hasWriteAccess()</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> said in <a href="/post/120764">Directory.hasWriteAccess()</a>:</p>
<blockquote>
<p dir="auto">Which returns a directory,</p>
</blockquote>
<p dir="auto">Is it returning the correct directory?</p>
</blockquote>
<p dir="auto">yes - I have set up a folder called ReadOnly on my D drive so it tells me this:</p>
<p dir="auto">here's the Console, output:</p>
<p dir="auto">Interface: location:D:\AudioContent\ReadOnly<br />
Interface: clicked:D:\AudioContent\ReadOnly<br />
Interface: is a directory:1<br />
Interface: is a file:0<br />
Interface: is the full path:D:\AudioContent\ReadOnly<br />
Interface: read only is returning:1</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> said in <a href="/post/120764">Directory.hasWriteAccess()</a>:</p>
<blockquote>
<p dir="auto">I've set the directory up to be read-only</p>
</blockquote>
<p dir="auto">Which OS? How did you set the permission?</p>
</blockquote>
<p dir="auto">Windows, setting permissions with the  Properties/Security dialog<br />
<img src="/assets/uploads/files/1780326248740-db9efc92-b6c6-43bc-870a-9f3e667adb4c-image.png" alt="db9efc92-b6c6-43bc-870a-9f3e667adb4c-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hise.audio/post/120766</link><guid isPermaLink="true">https://forum.hise.audio/post/120766</guid><dc:creator><![CDATA[Lindon]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:06:08 GMT</pubDate></item><item><title><![CDATA[Reply to Directory.hasWriteAccess() on Mon, 01 Jun 2026 14:59:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> said in <a href="/post/120764">Directory.hasWriteAccess()</a>:</p>
<blockquote>
<p dir="auto">Which returns a directory,</p>
</blockquote>
<p dir="auto">Is it returning the correct directory?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> said in <a href="/post/120764">Directory.hasWriteAccess()</a>:</p>
<blockquote>
<p dir="auto">I've set the directory up to be read-only</p>
</blockquote>
<p dir="auto">Which OS? How did you set the permission?</p>
]]></description><link>https://forum.hise.audio/post/120765</link><guid isPermaLink="true">https://forum.hise.audio/post/120765</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Mon, 01 Jun 2026 14:59:18 GMT</pubDate></item></channel></rss>