koog-agents
Toggle table of contents
0.1.0
common
Platform filter
common
Switch theme
Search in API
koog-agents
agents-features-memory
/
ai.koog.agents.local.memory.providers
/
FileSystemProvider
/
ReadWrite
Read
Write
interface
ReadWrite
<
Path
>
:
FileSystemProvider.ReadOnly
<
Path
>
,
FileSystemProvider.Write
<
Path
>
(
source
)
Inheritors
ReadWrite
Members
Functions
create
Link copied to clipboard
abstract
suspend
fun
create
(
parent
:
Path
,
name
:
String
,
type
:
FileMetadata.FileType
)
delete
Link copied to clipboard
abstract
suspend
fun
delete
(
parent
:
Path
,
name
:
String
)
exists
Link copied to clipboard
abstract
suspend
fun
exists
(
path
:
Path
)
:
Boolean
extension
Link copied to clipboard
abstract
suspend
fun
extension
(
path
:
Path
)
:
String
from
Absolute
String
Link copied to clipboard
abstract
fun
fromAbsoluteString
(
path
:
String
)
:
Path
from
Relative
String
Link copied to clipboard
abstract
fun
fromRelativeString
(
base
:
Path
,
path
:
String
)
:
Path
list
Link copied to clipboard
abstract
suspend
fun
list
(
path
:
Path
)
:
List
<
Path
>
metadata
Link copied to clipboard
abstract
suspend
fun
metadata
(
path
:
Path
)
:
FileMetadata
?
move
Link copied to clipboard
abstract
suspend
fun
move
(
source
:
Path
,
target
:
Path
)
name
Link copied to clipboard
abstract
suspend
fun
name
(
path
:
Path
)
:
String
parent
Link copied to clipboard
abstract
suspend
fun
parent
(
path
:
Path
)
:
Path
?
read
Link copied to clipboard
abstract
suspend
fun
read
(
path
:
Path
)
:
ByteArray
relative
Link copied to clipboard
open
suspend
fun
relative
(
root
:
Path
,
path
:
Path
)
:
String
?
relativize
Link copied to clipboard
abstract
suspend
fun
relativize
(
root
:
Path
,
path
:
Path
)
:
String
?
sink
Link copied to clipboard
abstract
suspend
fun
sink
(
path
:
Path
,
append
:
Boolean
=
false
)
:
Sink
size
Link copied to clipboard
abstract
suspend
fun
size
(
path
:
Path
)
:
Long
source
Link copied to clipboard
abstract
suspend
fun
source
(
path
:
Path
)
:
Source
to
Absolute
Path
String
Link copied to clipboard
abstract
fun
toAbsolutePathString
(
path
:
Path
)
:
String
to
Path
String
Link copied to clipboard
abstract
fun
toPathString
(
path
:
Path
)
:
String
Performs path to string conversion.
write
Link copied to clipboard
abstract
suspend
fun
write
(
path
:
Path
,
content
:
ByteArray
)