Package-level declarations
Properties
Determines if current DocumentFile is an Audio Courtesy: Code of Amaze file manager
Determines if current DocumentFile is an image Courtesy: Code of Amaze file manager
Determines if current DocumentFile is a Video Courtesy: Code of Amaze file manager
Functions
Copies data from input stream
Zip the file.
Deletes given directory and returns result
Checks and returns if there's a valid directory with given path
Return the files' comment in ZIP file.
Get the size of the directory in bytes format
Gets the file count of given directory
Return the files' path in ZIP file.
Calculates the folder size
Get myme type of file
Gets the actual path of the Uri.
Gets an uri of file
The method is use to prevent a problem, when several threads can try to .mkdirsIfNotExist for the same Path simultaneously.
Open File in InputStream
Read File data as String and Returns the Result
Tries to return the mime type from the file path
Convert File to ByteArray
Opens and reads the entirety of the Uri into a ByteArray.
Zip the files.