Test the ability to write to a given directory.

test_permissions(dir)

Arguments

dir

Directory to test.