- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for createNewFile (0.28 sec)
-
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());
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Thu Jan 05 13:17:59 GMT 2023 - 16.3K bytes - Viewed (0) -
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);
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Thu Jan 05 13:09:03 GMT 2023 - 25.5K 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 });
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 12.4K 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) ) {
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Nov 14 17:40:50 GMT 2021 - 17.6K 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() } }
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Jun 14 12:35:52 GMT 2023 - 10.6K bytes - Viewed (0) -
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() {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 05:46:50 GMT 2024 - 13.8K bytes - Viewed (0) -
src/test/java/jcifs/tests/DfsTest.java
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Mar 01 09:46:04 GMT 2020 - 13.5K 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
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Dec 20 14:09:34 GMT 2020 - 26K 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); } } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 33.1K bytes - Viewed (0)