From 4362f9e0df5c9a42fe398743c9fbc4ce09b00ddf Mon Sep 17 00:00:00 2001 From: attila Date: Wed, 12 Mar 2025 17:36:58 +0100 Subject: [PATCH] File: Document setReadOnly behaviour for Windows directories --- modules/juce_core/files/juce_File.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/juce_core/files/juce_File.h b/modules/juce_core/files/juce_File.h index 008ae9b350..9d4c3264a9 100644 --- a/modules/juce_core/files/juce_File.h +++ b/modules/juce_core/files/juce_File.h @@ -362,6 +362,9 @@ public: /** Changes the write-permission of a file or directory. + Note that on Windows, there is no notion of a directory itself being read-only or not, and + the function will always return true when called with the non-recursive option. + @param shouldBeReadOnly whether to add or remove write-permission @param applyRecursively if the file is a directory and this is true, it will recurse through all the subfolders changing the permissions