Ejemplo n.º 1
0
    public bool CheckIfHasAccess(string directory)
    {
        try
        {
            _environmentDirectoryService.GetDirectories(directory);

            return(true);
        }
        catch (UnauthorizedAccessException)
        {
            return(false);
        }
    }
 public string[] GetDirectories(string directory) =>
 _environmentDirectoryService.GetDirectories(PreprocessPath(directory));