Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 507 for unlink (0.04 sec)

  1. tests/test_tutorial/test_static_files/test_tutorial001.py

        sample_file.write_text("This is a sample static file.")
        from docs_src.static_files.tutorial001_py39 import app
    
        with TestClient(app) as client:
            yield client
        sample_file.unlink()
        static_dir.rmdir()
    
    
    def test_static_files(client: TestClient):
        response = client.get("/static/sample.txt")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  2. scripts/translate.py

        for path in removable_paths:
            path.unlink()
            print(f"Removed: {path}")
        print("Done removing all removable paths")
    
    
    @app.command()
    def remove_all_removable() -> None:
        all_removable = list_all_removable()
        for removable_path in all_removable:
            removable_path.unlink()
            print(f"Removed: {removable_path}")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  3. scripts/docs.py

        if error_paths:
            print("Non-translated pages found, removing them:")
            for error_path in error_paths:
                print(error_path)
                if error_path.is_file():
                    error_path.unlink()
                else:
                    shutil.rmtree(error_path)
            raise typer.Exit(1)
        print("No non-translated pages found ✅")
    
    
    @app.command()
    def langs_json():
        langs = []
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 21 17:40:17 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  4. cmd/site-replication.go

    			if v2.LastOnline.After(v.LastOnline) || v2.LastOnline.IsZero() {
    				v2.Endpoint = v.Endpoint
    				v2.LastOnline = v.LastOnline
    				v2.Latency = v.Latency
    				v2.Online = v.Online
    				v2.TotalDowntime = v.TotalDowntime
    				v2.DeploymentID = v.DeploymentID
    			}
    			v2.ReplicatedCount += v.ReplicatedCount
    			v2.ReplicatedSize += v.ReplicatedSize
    			v2.Failed = v2.Failed.Add(v.Failed)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 184.8K bytes
    - Viewed (1)
  5. src/main/resources/fess_config.properties

    # Online help key for log.
    online.help.name.log=log
    # Online help key for general settings.
    online.help.name.general=general
    # Online help key for role.
    online.help.name.role=role
    # Online help key for job log.
    online.help.name.joblog=joblog
    # Online help key for keymatch.
    online.help.name.keymatch=keymatch
    # Online help key for related query.
    online.help.name.relatedquery=relatedquery
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 11 09:47:03 UTC 2025
    - 54.8K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/generate-clients.md

    * <a href="https://www.stainless.com/?utm_source=fastapi&utm_medium=referral" class="external-link" target="_blank">Stainless</a>
    * <a href="https://developers.liblab.com/tutorials/sdk-for-fastapi?utm_source=fastapi" class="external-link" target="_blank">liblab</a>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool-decom.go

    	if !update {
    		z.poolMetaMutex.Lock()
    		z.poolMeta = meta
    		z.poolMetaMutex.Unlock()
    	} else {
    		newMeta := newPoolMeta(z, meta)
    		if err = newMeta.save(ctx, z.serverPools); err != nil {
    			return err
    		}
    		z.poolMetaMutex.Lock()
    		z.poolMeta = newMeta
    		z.poolMetaMutex.Unlock()
    	}
    
    	pools := meta.returnResumablePools()
    	poolIndices := make([]int, 0, len(pools))
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 42.2K bytes
    - Viewed (1)
  8. cmd/namespace-lock.go

    			delete(n.lockMap, resource)
    		}
    		n.lockMapMutex.Unlock()
    	}
    
    	return locked
    }
    
    // Unlock the namespace resource.
    func (n *nsLockMap) unlock(volume string, path string, readLock bool) {
    	resource := pathJoin(volume, path)
    
    	n.lockMapMutex.Lock()
    	defer n.lockMapMutex.Unlock()
    	if _, found := n.lockMap[resource]; !found {
    		return
    	}
    	if readLock {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  9. internal/lsync/lrwmutex_test.go

    		if recover() == nil {
    			t.Fatalf("unlock of unlocked RWMutex did not panic")
    		}
    	}()
    	mu := NewLRWMutex()
    	mu.Unlock()
    }
    
    // Borrowed from rwmutex_test.go
    func TestUnlockPanic2(t *testing.T) {
    	defer func() {
    		if recover() == nil {
    			t.Fatalf("unlock of unlocked RWMutex did not panic")
    		}
    	}()
    	mu := NewLRWMutex()
    	mu.RLock()
    	mu.Unlock()
    }
    
    // Borrowed from rwmutex_test.go
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-rebalance.go

    		return err
    	}
    	defer lock.Unlock(lkCtx)
    
    	ctx = lkCtx.Context()
    	noLockOpts := ObjectOptions{NoLock: true}
    	r := &rebalanceMeta{}
    	err = r.loadWithOpts(ctx, z.serverPools[0], noLockOpts)
    	if err != nil && !errors.Is(err, errConfigNotFound) {
    		return err
    	}
    
    	z.rebalMu.Lock()
    	defer z.rebalMu.Unlock()
    
    	// if not found, we store the memory metadata back
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 28.7K bytes
    - Viewed (0)
Back to top