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)) {
|
if (fs::islink(st.mode)) {
|
||||||
log::printfln("TODO: support symlinks ({})", strpath);
|
let linktext = fs::readlink(old_fs, strpath)?;
|
||||||
return;
|
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)) {
|
} else if (fs::isdir(st.mode)) {
|
||||||
fs::mkdir(new_fs, strpath, st.mode)?;
|
fs::mkdir(new_fs, strpath, st.mode)?;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user