Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsDir (0.09 sec)

  1. tests/test_tutorial/test_templates/test_tutorial001.py

    import os
    import shutil
    
    from fastapi.testclient import TestClient
    
    
    def test_main():
        if os.path.isdir("./static"):  # pragma: nocover
            shutil.rmtree("./static")
        if os.path.isdir("./templates"):  # pragma: nocover
            shutil.rmtree("./templates")
        shutil.copytree("./docs_src/templates/templates/", "./templates")
        shutil.copytree("./docs_src/templates/static/", "./static")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 915 bytes
    - Viewed (0)
  2. src/archive/tar/writer_test.go

    		}
    		hdr, err := tr.Next()
    		if err == io.EOF {
    			break // End of archive
    		}
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		tmpName := name
    		if entryInfo.IsDir() {
    			tmpName += "/"
    		}
    		if hdr.Name != tmpName {
    			t.Errorf("test fs has filename %v; archive header has %v",
    				name, hdr.Name)
    		}
    
    		if entryInfo.Mode() != hdr.FileInfo().Mode() {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Mon Dec 15 16:34:13 UTC 2025
    - 40.2K bytes
    - Viewed (0)
Back to top