I am trying to write a code to create a file in particular directory.
Although I am able to manage the code to check for file existence and also creating the directory if not exists but how to check if I have the permission to create the directory and/or file at specified place.