adammurdoch 2002/10/24 20:52:04
Modified: vfs/src/java/org/apache/commons/vfs/provider/smb
SmbFileObject.java
Log:
Removed dodgy workarounds that are no longer needed with newer version of jCIFS.
Revision Changes Path
1.7 +0 -20
jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileObject.java
Index: SmbFileObject.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileObject.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- SmbFileObject.java 23 Oct 2002 11:59:41 -0000 1.6
+++ SmbFileObject.java 25 Oct 2002 03:52:03 -0000 1.7
@@ -99,31 +99,11 @@
}
/**
- * Detaches this file object from its file resource.
- */
- protected void doDetach()
- {
- // Need to throw away the file when the file's type changes, because
- // the SmbFile caches the type
- file = null;
- }
-
- /**
* Determines the type of the file, returns null if the file does not
* exist.
*/
protected FileType doGetType() throws Exception
{
- // Need to check whether parent exists or not, because SmbFile.exists()
- // throws an exception if it does not
- // TODO - patch jCIFS?
-
- FileObject parent = getParent();
- if ( parent != null && !parent.exists() )
- {
- return null;
- }
-
if ( !file.exists() )
{
return null;
--
To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>