ValV
01/09/2019, 8:20 PM/path/to/file
), than store it as a String
? Better way to split it later by directories (path
, to
, file
)?hudsonb
01/09/2019, 8:23 PMDominaezzz
01/09/2019, 8:24 PMinline class Path(private val value: String)
on multi-platform.ValV
01/09/2019, 8:30 PMString
inside a Path
class, won't it?Dominaezzz
01/09/2019, 8:31 PMjava.nio.file.Path
.ValV
01/09/2019, 8:32 PMPath
?Dominaezzz
01/09/2019, 8:34 PMString
.ValV
01/09/2019, 8:35 PMDominaezzz
01/09/2019, 8:38 PM"/path/to/file".split('/')
should do the trick.ValV
01/09/2019, 8:39 PMfred.deschenes
01/09/2019, 8:45 PMPath
but serialize it as an absolute path string, as working with paths is a PITAjoelpedraza
01/09/2019, 8:59 PMBeware the platform."/path/to/file".split('/')
/
might not be the path seperatorfred.deschenes
01/09/2019, 9:02 PMValV
01/09/2019, 9:04 PMPath
to handle cross-platform? But it seems tricky to serialize/
, but convert to Path
when I perform file IO operations?