- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for attrs (1.94 sec)
-
src/test/java/jcifs/tests/FileAttributesTest.java
try { int attrs = f.getAttributes() ^ SmbConstants.ATTR_ARCHIVE ^ SmbConstants.ATTR_HIDDEN ^ SmbConstants.ATTR_READONLY; if ( Boolean.parseBoolean(getProperties().getOrDefault("test.skip.hidden", "false")) ) { attrs &= ~SmbConstants.ATTR_HIDDEN; } f.setAttributes(attrs); assertEquals(attrs, f.getAttributes()); }
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Thu Jan 05 13:09:03 GMT 2023 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSetInformation.java
/** * * @param config * @param filename * @param attrs * @param mtime */ public SmbComSetInformation ( Configuration config, String filename, int attrs, long mtime ) { super(config, SMB_COM_SET_INFORMATION, filename); this.fileAttributes = attrs; this.lastWriteTime = mtime; } @Override
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
SmbConstants.FILE_NO_SHARE, attrs, 0); } catch ( SmbAuthException sae ) { log.trace("copyTo0", sae); int dattrs = dest.getAttributes(); if ( ( dattrs & SmbConstants.ATTR_READONLY ) != 0 ) { /* * Remove READONLY and try again */
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Tue Jul 07 10:52:42 GMT 2020 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/tests/OplockTests.java
| SmbConstants.FILE_WRITE_DATA; int attrs = 0; int options = 0; String uncPath = "foo-oplock"; SmbComNTCreateAndXResponse resp = new SmbComNTCreateAndXResponse(sess.getConfig()); SmbComNTCreateAndX req = new SmbComNTCreateAndX(sess.getConfig(), uncPath, flags, access, sharing, attrs, options, null); req.addFlags0(0x2); // REQUEST_OPLOCK
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Thu Jan 05 13:09:03 GMT 2023 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
return SmbEnumerationUtil.listFiles(this, "*", ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM, null, filter); } @Override public CloseableIterator<SmbResource> children () throws CIFSException { return SmbEnumerationUtil.doEnum(this, "*", ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM, null, null); } @Override
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Mon Mar 13 12:00:57 GMT 2023 - 81.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileHandleImpl.java
long initialSize ) { this.cfg = cfg; this.fileId = fid; this.initialSize = initialSize; this.fid = 0; this.unc = unc; this.flags = flags; this.access = access; this.attrs = attrs; this.options = options; this.tree = tree.acquire();
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 8.6K bytes - Viewed (0) -
src/main/java/jcifs/SmbConstants.java
/** * Files is marked to be archived */ static final int ATTR_ARCHIVE = 0x20; // extended file attribute encoding(others same as above) static final int ATTR_COMPRESSED = 0x800; static final int ATTR_NORMAL = 0x080; static final int ATTR_TEMPORARY = 0x100; // access mask encoding static final int FILE_READ_DATA = 0x00000001; // 1
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 8.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
} else { // at least on samba, SmbComOpenAndX fails without the pipe prefix this.handle = this.pipe .openUnshared("\\pipe" + getUncPath(), this.openFlags, this.access, this.sharing, SmbConstants.ATTR_NORMAL, 0); }
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Mon Apr 13 17:05:22 GMT 2020 - 10.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
file.send( new TransWaitNamedPipe( "\\pipe" + file.unc ), new TransWaitNamedPipeResponse() ); } file.open( openFlags, access | SmbConstants.FILE_WRITE_DATA, SmbFile.ATTR_NORMAL, 0 ); this.openFlags &= ~(SmbFile.O_CREAT | SmbFile.O_TRUNC); /* in case close and reopen */ writeSize = file.tree.session.transport.snd_buf_size - 70;
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 9.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
if ( !isOpen() ) { // one extra acquire to keep this open till the stream is released this.handle = this.file.openUnshared(this.openFlags, this.access, this.sharing, SmbConstants.ATTR_NORMAL, 0).acquire(); if ( this.append ) { this.fp = this.handle.getInitialSize(); if ( log.isDebugEnabled() ) { log.debug("File pointer is at " + this.fp);
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sat Nov 13 15:14:04 GMT 2021 - 11.9K bytes - Viewed (0)