makeReadWriteDirectory

Checks if the specified path is a directory that can be read from and written into. If the directory does not exist, then this method will try to create a readable/writable directory. The operation will be performed on an io thread to adhere to the strict mode policy. The calling thread will be blocked until the operation is complete.

Return

reference to the validated path.

Parameters

path

the path to check/create.

Throws

if the download path is invalid or if the download path does not have read or write permissions.