From 23f49985296a3594c2cf37fa08e0b3e882d5c9e4 Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Fri, 29 Sep 2017 12:35:01 +0200 Subject: Add a function to surround filenames containing a space with quotes. --- lib/cUnix.mli | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/cUnix.mli') diff --git a/lib/cUnix.mli b/lib/cUnix.mli index a394814041..f79f34016a 100644 --- a/lib/cUnix.mli +++ b/lib/cUnix.mli @@ -14,6 +14,9 @@ type load_path = physical_path list val physical_path_of_string : string -> physical_path val string_of_physical_path : physical_path -> string +(** Escape what has to be escaped (e.g. surround with quotes if with spaces) *) +val escaped_string_of_physical_path : physical_path -> string + val canonical_path_name : string -> string (** remove all initial "./" in a path *) -- cgit v1.2.3