- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for createNewFile (0.1 sec)
-
src/test/java/jcifs/tests/EnumTest.java
try ( SmbFile a = new SmbFile(f, "a"); SmbFile b = new SmbFile(f, "b"); SmbFile c = new SmbFile(f, "c") ) { a.createNewFile(); b.createNewFile(); c.createNewFile(); String[] names = f.list(); assertNotNull(names); assertEquals(3, names.length); Arrays.sort(names);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:09:03 UTC 2023 - 25.5K bytes - Viewed (0) -
src/test/java/jcifs/tests/FileOperationsTest.java
SmbResource f = new SmbFile(defaultShareRoot, makeRandomName()); SmbResource tgt = new SmbFile(defaultShareRoot, makeRandomName()) ) { f.createNewFile(); tgt.createNewFile(); boolean renamed = false; try { f.renameTo(tgt, true); try { assertTrue(tgt.exists());
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:17:59 UTC 2023 - 16.3K bytes - Viewed (0) -
build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt
project.layout.buildDirectory.file("tmp/teŝt files/leftover/leftover").get().asFile.apply { parentFile.mkdirs() createNewFile() } } } useJUnitPlatform() } }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jun 14 12:35:52 UTC 2023 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/tests/ConcurrencyTest.java
String fname = makeRandomName(); try ( SmbFile sr = getDefaultShareRoot(); SmbResource exclFile = new SmbFile(sr, fname) ) { exclFile.createNewFile(); try { try ( InputStream is = exclFile.openInputStream(SmbConstants.FILE_NO_SHARE); InputStream is2 = exclFile.openInputStream(SmbConstants.FILE_NO_SHARE) ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Nov 14 17:40:50 UTC 2021 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/tests/TimeoutTest.java
try ( SmbFile f = new SmbFile(new SmbFile(getTestShareURL(), ctx), makeRandomName()) ) { int soTimeout = ctx.getConfig().getSoTimeout(); f.createNewFile(); try { try ( OutputStream os = f.getOutputStream() ) { os.write(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 });
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/tests/DfsTest.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Mar 01 09:46:04 UTC 2020 - 13.5K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
String path = "target/test-repositories/" + component() + "/bad-local-repository"; File f = new File(getBasedir(), path); f.createNewFile(); return artifactRepositoryFactory.createArtifactRepository( "test", "file://" + f.getPath(), repoLayout, null, null); } protected String getRepositoryLayout() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.8K 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 */ void createNewFile () throws CIFSException; /** * Creates a directory with the path specified by this <tt>SmbResource</tt> * and any parent directories that do not exist. This method will fail
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Dec 20 14:09:34 UTC 2020 - 26K bytes - Viewed (1) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jul 22 19:03:12 UTC 2024 - 33.1K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jul 22 19:03:12 UTC 2024 - 33.1K bytes - Viewed (0)