Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for canWrite (0.27 sec)

  1. cmd/storage-rest-server.go

    	bodyDoneCh := make(chan struct{})
    	doneCh := make(chan error)
    	ctx := r.Context()
    	go func() {
    		canWrite := true
    		write := func(b []byte) {
    			if canWrite {
    				n, err := w.Write(b)
    				if err != nil || n != len(b) {
    					canWrite = false
    				}
    			}
    		}
    		// Wait for body to be read.
    		select {
    		case <-ctx.Done():
    		case <-bodyDoneCh:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbResource.java

         * will be read-only.
         *
         * @return <code>true</code> if the resource exists is not marked
         *         read-only
         * @throws CIFSException
         */
        boolean canWrite () throws CIFSException;
    
    
        /**
         * Tests to see if the file this <code>SmbResource</code> represents can be
         * read. Because any file, directory, or other resource can be read if it
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 26K bytes
    - Viewed (0)
  3. 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;
    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)
  4. src/main/java/jcifs/smb1/smb1/SmbFile.java

     * will be read-only.
     *
     * @return  <code>true</code> if the resource exists is not marked
     *          read-only
     */
    
        public boolean canWrite() throws SmbException {
            if( getType() == TYPE_NAMED_PIPE ) { // try opening the pipe for writing?
                return true;
            }
            return exists() && ( attributes & ATTR_READONLY ) == 0;
        }
    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)
Back to top