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
@@ -177,11 +177,8 @@ rust_vec : public rc_base<rust_vec>
|
||||
alloc(alloc),
|
||||
fill(fill)
|
||||
{
|
||||
if (d || fill) {
|
||||
I(dom, d);
|
||||
I(dom, fill);
|
||||
if (d)
|
||||
memcpy(&data[0], d, fill);
|
||||
}
|
||||
}
|
||||
~rust_vec() {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user