- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 68 for SmbFile (0.1 sec)
-
src/test/java/jcifs/tests/WatchTest.java
try ( SmbWatchHandle w = this.base .watch(FileNotifyInformation.FILE_NOTIFY_CHANGE_ATTRIBUTES | FileNotifyInformation.FILE_NOTIFY_CHANGE_LAST_WRITE, false) ) { try ( SmbFile cr = new SmbFile(this.base, "modified") ) { cr.createNewFile(); setupWatch(w); try ( OutputStream os = cr.getOutputStream() ) { os.write(new byte[] {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 8.4K bytes - Viewed (0) -
src/test/java/jcifs/tests/KerberosTest.java
Kerb5Authenticator creds = new RefreshableKerb5Authenticator(s, getTestUserDomainRequired(), getTestUser(), getTestUserPassword()); CIFSContext ctx = getContext().withCredentials(creds); try ( SmbFile f = new SmbFile(getTestShareURL(), ctx); SmbTreeHandleInternal th = (SmbTreeHandleInternal) f.getTreeHandle(); SmbSessionInternal session = (SmbSessionInternal) th.getSession() ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Mar 01 09:46:04 UTC 2020 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/tests/EnumTest.java
try ( SmbFile f = createTestDirectory() ) { try ( SmbFile a = new SmbFile(f, "a.txt"); SmbFile b = new SmbFile(f, "b.txt"); SmbFile c = new SmbFile(f, "c.bar") ) { a.createNewFile(); b.createNewFile(); c.createNewFile(); SmbFile[] files = f.listFiles(new DosFileFilter("*.txt", -1));
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
@Test public void testMoveFile () throws CIFSException, MalformedURLException, UnknownHostException { try ( SmbFile defaultShareRoot = getDefaultShareRoot(); SmbFile d = createTestDirectory(); SmbResource f = new SmbFile(defaultShareRoot, makeRandomName()); SmbFile f2 = new SmbFile(d, makeRandomName()) ) { f.createNewFile(); boolean renamed = false; try {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:17:59 UTC 2023 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/tests/NamingTest.java
private void runFilenameTest ( String... names ) throws CIFSException, UnknownHostException, MalformedURLException { try ( SmbFile d = createTestDirectory() ) { try { for ( String name : names ) { try ( SmbResource tf = new SmbFile(d, name) ) { tf.createNewFile(); } }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sat Jun 06 10:48:05 UTC 2020 - 7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
* * @param file An <code>SmbFile</code> representing the file to write to * @param append Append to the end of file */ public SmbFileOutputStream( SmbFile file, boolean append ) throws SmbException, MalformedURLException, UnknownHostException { this( file, append, append ? SmbFile.O_CREAT | SmbFile.O_WRONLY | SmbFile.O_APPEND : SmbFile.O_CREAT | SmbFile.O_WRONLY | SmbFile.O_TRUNC );
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 9.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java
this( new SmbFile( url )); } /** * Creates an {@link java.io.InputStream} for reading bytes from a file on * an SMB server represented by the {@link jcifs.smb1.smb1.SmbFile} parameter. See * {@link jcifs.smb1.smb1.SmbFile} for a detailed description and examples of * the smb URL syntax. * * @param file An <code>SmbFile</code> specifying the file to read from */
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sat Jul 20 08:41:19 UTC 2019 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/tests/SessionTest.java
Assert.assertTrue(f1 instanceof SmbFile); Assert.assertTrue(f2 instanceof SmbFile); try ( SmbTreeHandleInternal th1 = (SmbTreeHandleInternal) ( (SmbFile) f1 ).getTreeHandle(); SmbTreeHandleInternal th2 = (SmbTreeHandleInternal) ( (SmbFile) f2 ).getTreeHandle(); SmbSessionInternal sess1 = th1.getSession().unwrap(SmbSessionInternal.class);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:09:03 UTC 2023 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/SmbResourceLocator.java
* <code>SmbFile</code> references a workgroup, the name of the workgroup * is returned. If this <code>SmbFile</code> refers to the root of this * SMB network hierarchy, <code>null</code> is returned. * * @return The server or workgroup name or <code>null</code> if this * <code>SmbFile</code> refers to the root <code>smb://</code> resource. */
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 5.6K bytes - Viewed (0)