You need to create a program that takes as an input a file or directory name and then prints its permission bits and whether it is a directory or not.
Remember that you can get these file attributes with the FileMode type! Write the additional code below to first get the FileMode type within the mode variable, and then print the required file attributes!