diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-05-29 21:08:06 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-05-29 21:08:06 -0400 |
commit | f9b27f5424cb857406a60a2259052dfff1d76439 (patch) | |
tree | 9bf648458021afeab70748cf758063dfa1bcee35 /src | |
parent | cadf11e34d2b88da323ca98573238be2ac3a0824 (diff) | |
download | ucp-f9b27f5424cb857406a60a2259052dfff1d76439.tar.gz ucp-f9b27f5424cb857406a60a2259052dfff1d76439.zip |
disable set_len() for now
Diffstat (limited to 'src')
-rw-r--r-- | src/common.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common.rs b/src/common.rs index afdfe06..e68bae6 100644 --- a/src/common.rs +++ b/src/common.rs @@ -102,7 +102,8 @@ pub fn sink_files(stream: &mut UtpStream, file_path: &str, recursive: bool) { let flen: usize = line[1].parse::<usize>().unwrap(); let fpath = Path::new(line[2]); - f.set_len(flen as u64).unwrap(); + // TODO: I've disabled set_len; is this best practice? scp doesn't do it. + //f.set_len(flen as u64).unwrap(); fs::set_permissions(file_path, PermissionsExt::from_mode(fmode)).unwrap(); let mut received: usize = 0; |