Changeset 16 in code
- Timestamp:
- Oct 21, 2022, 7:07:54 PM (3 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/file_store.ml
r11 r16 4 4 5 5 let extension = ".txt" 6 let def_dir () = 7 let share = Sys.getenv "HOME" ^ "/.local/share/texts/" in 8 try Sys.getenv "txtdir" with Not_found -> 9 match Sys.is_directory share with 10 | true -> share 11 | false | exception (Sys_error _) -> "." 6 let def_dir () = try Sys.getenv "txtdir" with Not_found -> 7 let share = Filename.concat (Sys.getenv "HOME") ".local/share/texts/" in 8 match Sys.is_directory share with true -> share 9 | false | exception (Sys_error _) -> "." 12 10 13 11 let to_string f = -
trunk/lib/peers.ml
r3 r16 1 let text_dir = Filename.concat ( Sys.getenv "HOME") ".local/share/texts"1 let text_dir = Filename.concat (File_store.def_dir ()) "peers" 2 2 3 3 let fold fn init = match Sys.readdir text_dir with
Note:
See TracChangeset
for help on using the changeset viewer.