@InterfaceAudience.Private public static class FSOperations.FSRename extends Object implements FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
| Constructor and Description |
|---|
FSOperations.FSRename(String path,
String toPath)
Creates a rename executor.
|
public org.json.simple.JSONObject execute(FileSystem fs) throws IOException
execute in interface FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>fs - filesystem instance to use.true if the rename operation was successful,
false otherwise.IOException - thrown if an IO error occured.Copyright © 2013 Apache Software Foundation. All rights reserved.