|
@@ -36,9 +36,9 @@ interface ClientProtocol extends VersionedProtocol {
|
|
* Compared to the previous version the following changes have been introduced:
|
|
* Compared to the previous version the following changes have been introduced:
|
|
* (Only the latest change is reflected.
|
|
* (Only the latest change is reflected.
|
|
* The log of historical changes can be retrieved from the svn).
|
|
* The log of historical changes can be retrieved from the svn).
|
|
- * 27 : removed getContentLength(String), open(String, long, long) and isDir(String)
|
|
|
|
|
|
+ * 29 : getFileInfo returns null instead of throwing FileNotFoundException
|
|
*/
|
|
*/
|
|
- public static final long versionID = 27L;
|
|
|
|
|
|
+ public static final long versionID = 29L;
|
|
|
|
|
|
///////////////////////////////////////
|
|
///////////////////////////////////////
|
|
// File contents
|
|
// File contents
|
|
@@ -418,8 +418,9 @@ interface ClientProtocol extends VersionedProtocol {
|
|
/**
|
|
/**
|
|
* Get the file info for a specific file or directory.
|
|
* Get the file info for a specific file or directory.
|
|
* @param src The string representation of the path to the file
|
|
* @param src The string representation of the path to the file
|
|
- * @throws IOException if file does not exist
|
|
|
|
|
|
+ * @throws IOException if permission to access file is denied by the system
|
|
* @return object containing information regarding the file
|
|
* @return object containing information regarding the file
|
|
|
|
+ * or null if file not found
|
|
*/
|
|
*/
|
|
public DFSFileInfo getFileInfo(String src) throws IOException;
|
|
public DFSFileInfo getFileInfo(String src) throws IOException;
|
|
|
|
|