All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jetbrains.pluginverifier.repository.files.FileInfo.kt Maven / Gradle / Ivy

/*
 * Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
 */

package com.jetbrains.pluginverifier.repository.files

import com.jetbrains.pluginverifier.repository.cleanup.SpaceAmount
import com.jetbrains.pluginverifier.repository.resources.ResourceInfo
import java.nio.file.Path

/**
 * Descriptor of the file in the [file repository] [FileRepository].
 *
 * It consists of the [path to the file] [file] and its [size] [fileSize]
 */
data class FileInfo(val file: Path, val fileSize: SpaceAmount) : ResourceInfo(file, SpaceWeight(fileSize)) {
  override fun toString() = "File $file of size $fileSize"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy