/** * Change the permissions on the file represented by <code>path</code> to <code>perms</code>, asynchronously.<p> * The permission String takes the form rwxr-x--- as * specified in {<a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermissions.html">here</a>}. * <p> * If the file is directory then all contents will also have their permissions changed recursively. Any directory permissions will * be set to <code>dirPerms</code>, whilst any normal file permissions will be set to <code>perms</code>. * @param path the path to the file * @param perms the permissions string * @param dirPerms the directory permissions * @return a reference to this, so the API can be used fluently * @deprecated use {@link #rxChmodRecursive} instead */ @Deprecated() public Observable<Void> chmodRecursiveObservable(String path, String perms, String dirPerms) { io.vertx.rx.java.ObservableFuture<Void> handler = io.vertx.rx.java.RxHelper.observableFuture(); chmodRecursive(path, perms, dirPerms, handler.toHandler()); return handler; }
/** * Change the permissions on the file represented by <code>path</code> to <code>perms</code>, asynchronously.<p> * The permission String takes the form rwxr-x--- as * specified in {<a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermissions.html">here</a>}. * <p> * If the file is directory then all contents will also have their permissions changed recursively. Any directory permissions will * be set to <code>dirPerms</code>, whilst any normal file permissions will be set to <code>perms</code>. * @param path the path to the file * @param perms the permissions string * @param dirPerms the directory permissions * @return a reference to this, so the API can be used fluently */ public Single<Void> rxChmodRecursive(String path, String perms, String dirPerms) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { chmodRecursive(path, perms, dirPerms, fut); })); }
/** * Change the permissions on the file represented by <code>path</code> to <code>perms</code>, asynchronously.<p> * The permission String takes the form rwxr-x--- as * specified in {<a href="http://download.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermissions.html">here</a>}. * <p> * If the file is directory then all contents will also have their permissions changed recursively. Any directory permissions will * be set to <code>dirPerms</code>, whilst any normal file permissions will be set to <code>perms</code>. * @param path the path to the file * @param perms the permissions string * @param dirPerms the directory permissions * @return a reference to this, so the API can be used fluently */ public Single<Void> rxChmodRecursive(String path, String perms, String dirPerms) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { chmodRecursive(path, perms, dirPerms, fut); })); }