- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for createNewFile (0.24 sec)
-
src/test/java/jcifs/netbios/LmhostsTest.java
void testIOExceptionDuringRead() throws IOException { // Create a file that exists but will cause an IOException when read File lmhostsFile = tempDir.resolve("lmhosts").toFile(); lmhostsFile.createNewFile(); // Make file unreadable on Unix-like systems boolean isWindows = System.getProperty("os.name").toLowerCase().contains("windows"); if (!isWindows) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
docs/smb3-features/01-smb3-lease-design.md
context.getConfig().setProperty("jcifs.smb.client.useLeases", "true"); try (SmbFile file = new SmbFile("smb://server/share/test.txt", context)) { // Open file with lease file.createNewFile(); // Verify lease was granted assertTrue(file.canCacheRead()); // Write should be cached try (OutputStream os = file.getOutputStream()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 22K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
docs/smb3-features/05-rdma-smb-direct-design.md
SmbFile file = new SmbFile("smb://server/share/test.txt", context); // Should work even if RDMA provider is not available file.createNewFile(); assertTrue(file.exists()); } ``` ## 8. Performance Monitoring ### 8.1 RDMA Statistics ```java public class RdmaStatistics {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 35.9K bytes - Viewed (0) -
docs/smb3-features/06-witness-protocol-design.md
CIFSContext context = getTestContext(); context.getConfig().setProperty("jcifs.smb.client.useWitness", "true"); SmbFile file = new SmbFile("smb://cluster-server/share/test.txt", context); file.createNewFile(); // Monitor for witness notifications TestWitnessListener listener = new TestWitnessListener(); // Simulate cluster failover (would require test environment setup)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 42K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Files.java
*/ @SuppressWarnings("GoodTime") // reading system time without TimeSource public static void touch(File file) throws IOException { checkNotNull(file); if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) { throw new IOException("Unable to update modification time of " + file); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 32.9K bytes - Viewed (0) -
guava/src/com/google/common/io/Files.java
*/ @SuppressWarnings("GoodTime") // reading system time without TimeSource public static void touch(File file) throws IOException { checkNotNull(file); if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) { throw new IOException("Unable to update modification time of " + file); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 32.9K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
* existence of the file and it's creation are an atomic operation with * respect to other filesystem activities. * * @throws CIFSException if an error occurs creating the file */ void createNewFile() throws CIFSException; /** * Creates a directory with the path specified by this <code>SmbResource</code> * and any parent directories that do not exist. This method will fail
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1) -
src/main/java/jcifs/smb/SmbFile.java
log.debug("Failed to close after failure", e2); e.addSuppressed(e2); } throw e; } } @Override public void createNewFile() throws SmbException { if (this.fileLocator.isRootOrShare()) { throw new SmbException("Invalid operation for workgroups, servers, or shares"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
* existance of the file and it's creation are an atomic operation with * respect to other filesystem activities. * @throws SmbException if an error occurs while creating the file */ public void createNewFile() throws SmbException { if (getUncPath0().length() == 1) { throw new SmbException("Invalid operation for workgroups, servers, or shares"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0)