<human>:  check if directory access.
<bot>: Here is a Python function to check if directory access is allowed

import os

def check_dir(path):
  """Check if directory access
  """
  if not os.path.exists(path):
    os.makedirs(path)

# Enter the path
path = "/home/rosey/Desktop/"

# Calling the function
print((check_dir(path)))

#Example Output
# None

#Remember to inspect code for bugs.