Use the File object for file management. It allows and denies access to files. You can use it to manage files, look at attributes of files, set permissions for files, and to move files.