Skip to content
Extraits de code Groupes Projets
Valider f9fbbfb7 rédigé par LaplongeJunior's avatar LaplongeJunior
Parcourir les fichiers

Added "folder read hack"

parent d3158c8a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -175,6 +175,10 @@ imports.file.FileAccess = function(file, perms, shout=true)
if not file then return false
for i in range(0,perms.len-1)
perm = perms[i]
// Ugly hack: directories don't need r or x permission to enumerate files
if file.is_folder and perm != "w" then continue
if file.has_permission(perm) then continue
if shout then imports.utils.Print("Error: can't use ('"+perm+"') contents of '"+file.path+"'")
return false
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter