Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
chore: spotless apply ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Jul 22, 2022
1 parent d7a9ac9 commit 267b725
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ class FilesystemStorageTrailer(override val config: FilesystemStorageConfig): St

log.info("Using directory $directory to store data!")
val store = directory.toPath().fileStore()
if (store.isReadOnly)
if (store.isReadOnly) {
throw IllegalStateException("Directory $directory can't be readonly.")
}

log.info("using drive [${store.name()}] with type [${store.type()}] that has ${store.totalSpace / 1000} bytes of total space, with ${store.usableSpace / 1000} bytes of used space.")
}
Expand Down
17 changes: 17 additions & 0 deletions support-fs/src/main/kotlin/org/noelware/remi/filesystem/Stats.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* 🧶 Remi: Library to handling files for persistent storage with Google Cloud Storage and Amazon S3-compatible server, made in Kotlin!
* Copyright 2022 Noelware <team@noelware.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.noelware.remi.filesystem

import kotlinx.serialization.SerialName
Expand Down

0 comments on commit 267b725

Please sign in to comment.