Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv8689/src/java/core/org/krysalis/ruper2/protocols/impl
Modified Files:
FileProtocolOperationsProvider.java
Log Message:
File fix (inside VRL) to see deletes actually occur.
Index: FileProtocolOperationsProvider.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/impl/FileProtocolOperationsProvider.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FileProtocolOperationsProvider.java 13 Oct 2003 03:46:11 -0000 1.2
--- FileProtocolOperationsProvider.java 13 Oct 2003 13:24:42 -0000 1.3
***************
*** 9,12 ****
--- 9,13 ----
import org.krysalis.ruper2.impl.ResourceUpdaterContext;
+ import org.krysalis.ruper2.log.Logger;
import org.krysalis.ruper2.protocols.Protocol;
import org.krysalis.ruper2.util.io.FileUtils;
***************
*** 42,46 ****
File file = files[i];
children.add(
! new VirtualResourceLocator(ResolvedFile.resolve(folder, file.getName())));
}
--- 43,48 ----
File file = files[i];
children.add(
! new VirtualResourceLocator(
! ResolvedFile.resolve(folder, file.getName())));
}
***************
*** 68,76 ****
}
! public void delete(
! VirtualResourceLocator locator,
! ISelector selector)
throws Exception {
! locator.getFile().delete();
}
}
--- 70,80 ----
}
! public void delete(VirtualResourceLocator locator, ISelector selector)
throws Exception {
! File file = locator.getFile();
!
! boolean deleted = file.delete();
! if (!deleted)
! Logger.getLog().error("Failed to delete file: " + file);
}
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.