mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 23:30:55 +03:00
chown / chmod / chgrp in StatefulSFTPClient -- these all delegate to setattr which is overriden in StatefulSFTPClient to do cwdification. #28
This commit is contained in:
@@ -15,13 +15,13 @@
|
|||||||
*/
|
*/
|
||||||
package net.schmizz.sshj.sftp;
|
package net.schmizz.sshj.sftp;
|
||||||
|
|
||||||
|
import net.schmizz.sshj.xfer.LocalDestFile;
|
||||||
|
import net.schmizz.sshj.xfer.LocalSourceFile;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import net.schmizz.sshj.xfer.LocalDestFile;
|
|
||||||
import net.schmizz.sshj.xfer.LocalSourceFile;
|
|
||||||
|
|
||||||
public class StatefulSFTPClient
|
public class StatefulSFTPClient
|
||||||
extends SFTPClient {
|
extends SFTPClient {
|
||||||
|
|
||||||
@@ -175,24 +175,6 @@ public class StatefulSFTPClient
|
|||||||
return super.canonicalize(cwdify(path));
|
return super.canonicalize(cwdify(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void chown(String path, int uid)
|
|
||||||
throws IOException {
|
|
||||||
super.chown(cwdify(path), uid);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void chmod(String path, int perms)
|
|
||||||
throws IOException {
|
|
||||||
super.chmod(cwdify(path), perms);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void chgrp(String path, int gid)
|
|
||||||
throws IOException {
|
|
||||||
super.chgrp(cwdify(path), gid);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void get(String source, String dest)
|
public void get(String source, String dest)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|||||||
Reference in New Issue
Block a user