<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Aphysoft.Share
{ 
    public static class Storage
    {
        public static bool HasWriteAccessToDirectory(string folderPath)
        {
            try
            {
                // Attempt to get a list of security permissions from the folder. 
                // This will raise an exception if the path is read only or do not have access to view the permissions. 
                System.Security.AccessControl.DirectorySecurity ds = Directory.GetAccessControl(folderPath);
                return true;
            }
            catch (UnauthorizedAccessException)
            {
                return false;
            }
        }
    }
}<commit_msg>Changed storage class name to IO<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security;
using System.Security.AccessControl;
using System.Security.Permissions;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace Aphysoft.Share
{ 
    public static class IO
    {
        public static bool HasWriteAccessToDirectory(string folderPath)
        {
            try
            {
                // TODO

                System.Security.AccessControl.DirectorySecurity ds = Directory.GetAccessControl(folderPath);
                return true;

            }
            catch (UnauthorizedAccessException)
            {
                return false;
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.06429463171036205, 'fraction_numerical': 0.0, 'mean_word_length': 1.9575645756457565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7227484', 'n_tokens_mistral': 393, 'n_tokens_neox': 377, 'n_words': 111}