m8ty-api-server
Toggle table of contents
1.114.0
jvm
Platform filter
jvm
Switch theme
Search in API
m8ty-api-server
m8ty-files - m8ty File utils and services
/
eu.m8ty.files
/
FileService
File
Service
@
Service
class
FileService
(
userService
:
IUserServiceApi
)
Members
Constructors
File
Service
Link copied to clipboard
constructor
(
userService
:
IUserServiceApi
)
Functions
base
Directory
Link copied to clipboard
fun
baseDirectory
(
storagePath
:
String
)
:
String
Returns the base directory of a user.
delete
Link copied to clipboard
fun
delete
(
fileContext
:
String
,
identifier
:
String
,
filename
:
String
,
storagePath
:
String
)
file
Path
Link copied to clipboard
fun
filePath
(
fileContext
:
String
,
identifier
:
String
,
filename
:
String
,
storagePath
:
String
)
:
Path
load
Link copied to clipboard
fun
load
(
fileContext
:
String
,
identifier
:
String
,
filename
:
String
,
storagePath
:
String
)
:
ByteArray
save
Link copied to clipboard
fun
save
(
file
:
Resource
,
targetFilePathAndName
:
String
)