compile-time проверка IStorageInfo
This commit is contained in:
@@ -9,9 +9,9 @@ class StorageFileManagementUseCase {
|
||||
private var _storage: IStorage? = null
|
||||
|
||||
fun setStorage(storage: IStorageInfo) {
|
||||
//if(storage !is IStorage)
|
||||
// throw Exception("Can not manage storage on StorageInfo")
|
||||
_storage = storage as IStorage
|
||||
when (storage) {
|
||||
is IStorage -> _storage = storage
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun getAllFiles(): List<IFile> {
|
||||
|
||||
Reference in New Issue
Block a user