Added file permission support

Added file permission support