Add basic file-system functionality
std.fs.list_dir will list the files in a directory, std.fs.file_is_dir will, given a pathname, determine whether it is a directory or not.
This commit is contained in:
committed by
Graydon Hoare
parent
3436979b17
commit
c731d625fe
@@ -2373,7 +2373,7 @@ impure fn parse_crate_directives(parser p, token.token term)
|
||||
impure fn parse_crate_from_crate_file(parser p) -> @ast.crate {
|
||||
auto lo = p.get_span();
|
||||
auto hi = lo;
|
||||
auto prefix = std.path.dirname(lo.filename);
|
||||
auto prefix = std.fs.dirname(lo.filename);
|
||||
auto cdirs = parse_crate_directives(p, token.EOF);
|
||||
auto m = eval.eval_crate_directives_to_mod(p, p.get_env(),
|
||||
cdirs, prefix);
|
||||
|
||||
Reference in New Issue
Block a user