Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for canWrite (0.07 seconds)

  1. src/main/java/jcifs/smb1/smb1/SmbFile.java

         * @return  <code>true</code> if the resource exists is not marked
         *          read-only
         * @throws SmbException if an error occurs while checking write permissions
         */
    
        public boolean canWrite() throws SmbException {
            if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for writing?
                return true;
            }
            return exists() && (attributes & ATTR_READONLY) == 0;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbFile.java

                return true;
            }
            return exists(); // try opening and catch sharing violation?
        }
    
        @Override
        public boolean canWrite() throws SmbException {
            if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for writing?
                return true;
            }
            return exists() && (this.attributes & ATTR_READONLY) == 0;
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
Back to Top