bunpen: PARTIAL support for symlinks
This commit is contained in:
@@ -180,8 +180,9 @@ fn bind_component(old_fs: *fs::fs, new_fs: *fs::fs, strpath: str) (void | fs::er
|
||||
// };
|
||||
|
||||
if (fs::islink(st.mode)) {
|
||||
log::printfln("TODO: support symlinks ({})", strpath);
|
||||
return;
|
||||
let linktext = fs::readlink(old_fs, strpath)?;
|
||||
fs::symlink(new_fs, linktext, strpath)?;
|
||||
// TODO: lots of edge cases with symlinks i need to flesh out here.
|
||||
} else if (fs::isdir(st.mode)) {
|
||||
fs::mkdir(new_fs, strpath, st.mode)?;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user