files

An exposer of files

License

License

GroupId

GroupId

tz.co.asoft
ArtifactId

ArtifactId

files-jvm
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

files
An exposer of files
Project URL

Project URL

https://github.com/aSoft-Ltd/files
Source Code Management

Source Code Management

https://github.com/aSoft-Ltd/files

Download files-jvm

Dependencies

compile (4)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.4.20
org.jetbrains.kotlinx : kotlinx-serialization-core-jvm jar 1.0.1
org.jetbrains.kotlinx : kotlinx-coroutines-core-jvm jar 1.4.1
org.jetbrains.kotlin : kotlin-stdlib-common jar 1.4.20

Project Modules

There are no modules declared in this project.

Files

badge badge badge badge badge

A multiplatform exposer of file

Introduction

This library will give you basic access to File in common code

Samples

suspend fun checkFileThenReadBytes(file: File){
    if(file.extension()=="jpg") { println("File is jpg")}
    val content = file.readBytes() //suspends here
}

Setup

dependencies {
    implementation("tz.co.asoft:files:0.0.1")
}
tz.co.asoft

asoft

Versions

Version
0.0.1