Skip to content

Commit

Permalink
[Plugin API] Add Sys.basename_url and Sys.dirname_url
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbaturin committed Mar 18, 2024
1 parent dc2f4d4 commit 6ff50d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugin_api.ml
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,9 @@ struct
"split_path_unix", V.efunc (V.string **->> V.list V.string) File_path.split_path_unix;
"split_path_url", V.efunc (V.string **->> V.list V.string) File_path.split_path_unix;
"basename_unix", V.efunc (V.string **->> V.string) FilePath.UnixPath.basename;
"basename_url", V.efunc (V.string **->> V.string) FilePath.UnixPath.basename;
"dirname_unix", V.efunc (V.string **->> V.string) FilePath.UnixPath.dirname;
"dirname_url", V.efunc (V.string **->> V.string) FilePath.UnixPath.dirname;
(* Operations with file extensions. *)
"get_extension", V.efunc (V.string **->> V.string) Sys_wrappers.get_extension;
"get_extensions", V.efunc (V.string **->> V.list V.string) Sys_wrappers.get_extensions;
Expand Down

0 comments on commit 6ff50d2

Please sign in to comment.