ocaml-fileutils icon indicating copy to clipboard operation
ocaml-fileutils copied to clipboard

is_subdir with relative pathname and current dir

Open gildor478 opened this issue 4 years ago • 0 comments

This bug has been migrated from artifact #951 on forge.ocamlcore.org. It was assigned to user102.

user102 posted on 2011-04-09 09:45:32:

A relative filename should be a subdir of the current directory:

open FilePath;;

is_current "";;

  • : bool = true

is_current ".";;

  • : bool = true

is_subdir "a/b/c" "";;

  • : bool = false (1)

is_subdir "a/b/c" ".";;

  • : bool = false (2)

is_subdir "a/b/c" "a";;

  • : bool = true

(1) and (2) should be true.

gildor478 avatar Oct 24 '20 15:10 gildor478