src/Pure/General/file.ML
changeset 77180 7af930cd0fce
parent 76884 a004c5322ea4
equal deleted inserted replaced
77179:6d2ca97a8f46 77180:7af930cd0fce
    87 fun tmp_path path = Path.variable "ISABELLE_TMP" + Path.base path;
    87 fun tmp_path path = Path.variable "ISABELLE_TMP" + Path.base path;
    88 
    88 
    89 
    89 
    90 (* directory entries *)
    90 (* directory entries *)
    91 
    91 
    92 val exists = can OS.FileSys.modTime o platform_path;
    92 val exists = can OS.FileSys.fileId o platform_path;
    93 
    93 
    94 val rm = OS.FileSys.remove o platform_path;
    94 val rm = OS.FileSys.remove o platform_path;
    95 
    95 
    96 fun test_dir path = the_default false (try OS.FileSys.isDir (platform_path path));
    96 fun test_dir path = the_default false (try OS.FileSys.isDir (platform_path path));
    97 fun is_dir path = exists path andalso test_dir path;
    97 fun is_dir path = exists path andalso test_dir path;