Gpx_eio.IOSourceGPX Eio I/O operations
This module provides GPX I/O operations using Eio's effects-based concurrent I/O system. All operations are structured concurrency compatible and work with Eio's resource management.
Read GPX from file path.
val write_file :
?validate:bool ->
fs:[> Eio.Fs.dir_ty ] Eio.Path.t ->
string ->
Gpx.t ->
unitWrite GPX to file path.
Read/write GPX from/to Eio flows.
Read GPX from Eio source.
Write GPX to Eio sink.
Check if file exists.
Get file size.
Create backup of existing file.
val write_file_with_backup :
?validate:bool ->
fs:[> Eio.Fs.dir_ty ] Eio.Path.t ->
string ->
Gpx.t ->
stringWrite GPX to file with automatic backup. Creates a backup of existing file before writing new content.