- Sort Score
- Result 10 results
- Languages All
Results 821 - 830 of 8,512 for Tile (0.03 sec)
-
compat/maven-embedder/src/main/java/org/apache/maven/cli/ResolveFile.java
package org.apache.maven.cli; import java.io.File; import java.nio.file.Paths; /** * Resolve relative file path against the given base directory */ public class ResolveFile { public static File resolveFile(File file, String baseDirectory) { if (file == null) { return null; } else if (file.isAbsolute()) { return file; } else if (file.getPath().startsWith(File.separator)) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.4K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_03_an.py
path.write_bytes(b"<file content>") client = TestClient(app) with path.open("rb") as file: response = client.post("/files/", files={"file": file}) assert response.status_code == 200, response.text assert response.json() == {"file_size": 14} def test_post_upload_file(tmp_path): path = tmp_path / "test.txt" path.write_bytes(b"<file content>") client = TestClient(app)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 6K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java
private final File file; public ProjectArtifactMetadata(Artifact artifact) { this(artifact, null); } public ProjectArtifactMetadata(Artifact artifact, File file) { super(artifact); this.file = file; } public File getFile() { return file; } public String getRemoteFilename() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.8K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/FileProfileActivator.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/net/URLUtilTest.java
assertEquals("file", URLUtil.toCanonicalProtocol("file")); } /** * @throws Exception */ public void testToFile() throws Exception { final File file = new File("Program Files/hoge.txt"); final URL url = file.toURI().toURL(); assertEquals(file.getAbsoluteFile(), URLUtil.toFile(url));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.9K bytes - Viewed (0) -
cni/test/install_k8s_test.go
chainedCNIPlugin: true, resultFileName: "01-calico.conflist", expectedOutputFile: testDataDir + "/expected/10-calico.conflist-istioconfig", expectedPostCleanFile: testDataDir + "/pre/calico.conflist", cniConfDirOrderedFiles: []string{"non_json.conf", "calico.conflist", "minikube_cni.conf"}, }, { name: "Skip invalid .conf file for first valid .conf file",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 30 23:59:49 UTC 2024 - 7.9K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
expectedOutput: "Error: expecting a WorkloadGroup artifact file or the name and namespace of an existing WorkloadGroup\n", }, { description: "Invalid command args - missing valid input spec", args: strings.Split("entry configure -n bar -o temp --clusterID cid", " "), expectedException: true, expectedOutput: "Error: expecting a WorkloadGroup artifact file or the name and namespace of an existing WorkloadGroup\n",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 20:04:20 UTC 2024 - 14.6K bytes - Viewed (0) -
docs_src/request_files/tutorial002.py
from fastapi import FastAPI, File, UploadFile from fastapi.responses import HTMLResponse app = FastAPI() @app.post("/files/") async def create_files(files: List[bytes] = File()): return {"file_sizes": [len(file) for file in files]} @app.post("/uploadfiles/") async def create_upload_files(files: List[UploadFile]): return {"filenames": [file.filename for file in files]} @app.get("/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 811 bytes - Viewed (0) -
docs_src/request_files/tutorial002_an_py39.py
from fastapi import FastAPI, File, UploadFile from fastapi.responses import HTMLResponse app = FastAPI() @app.post("/files/") async def create_files(files: Annotated[list[bytes], File()]): return {"file_sizes": [len(file) for file in files]} @app.post("/uploadfiles/") async def create_upload_files(files: list[UploadFile]): return {"filenames": [file.filename for file in files]} @app.get("/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 826 bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
import java.nio.file.FileSystems; import java.nio.file.FileVisitResult; import java.nio.file.Files; import java.nio.file.NoSuchFileException; import java.nio.file.Path; import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; import java.nio.file.attribute.FileTime; import java.util.EnumSet; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 27.4K bytes - Viewed (0)