- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for createNewFile (0.42 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/WatchTest.java
try ( SmbResource cr = new SmbFile(this.base, "created") ) { cr.createNewFile(); assertNotified(w, FileNotifyInformation.FILE_ACTION_ADDED, "created", null); } try ( SmbResource cr = new SmbFile(this.base, "created2") ) { cr.createNewFile(); } setupWatch(w);
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 8.4K 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/BaseCIFSTest.java
try ( SmbFile defaultShareRoot = getDefaultShareRoot() ) { SmbFile f = new SmbFile(defaultShareRoot, makeRandomName()); f.createNewFile(); return f; } } protected SmbFile createTestDirectory () throws MalformedURLException, UnknownHostException, CIFSException {
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 8.1K 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/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) -
src/test/java/jcifs/tests/NamingTest.java
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sat Jun 06 10:48:05 GMT 2020 - 7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
/** * Create a new file but fail if it already exists. The check for * existance of the file and it's creation are an atomic operation with * respect to other filesystem activities. */ public void createNewFile() throws SmbException { if( getUncPath0().length() == 1 ) { throw new SmbException( "Invalid operation for workgroups, servers, or shares" ); }
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Mon Mar 13 12:00:57 GMT 2023 - 107.9K bytes - Viewed (2) -
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)