Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for is_file (0.04 sec)

  1. scripts/mkdocs_hooks.py

    
    def resolve_file(*, item: str, files: Files, config: MkDocsConfig) -> None:
        item_path = Path(config.docs_dir) / item
        if not item_path.is_file():
            en_src_dir = (Path(config.docs_dir) / "../../en/docs").resolve()
            potential_path = en_src_dir / item
            if potential_path.is_file():
                files.append(
                    EnFile(
                        path=item,
                        src_dir=str(en_src_dir),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_background_tasks/test_tutorial002.py

        mod = importlib.import_module(f"docs_src.background_tasks.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test(client: TestClient):
        log = Path("log.txt")
        if log.is_file():
            os.remove(log)  # pragma: no cover
        response = client.post("/send-notification/******@****.***?q=some-query")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 996 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_background_tasks/test_tutorial001.py

    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.background_tasks.tutorial001_py39 import app
    
    client = TestClient(app)
    
    
    def test():
        log = Path("log.txt")
        if log.is_file():
            os.remove(log)  # pragma: no cover
        response = client.post("/send-notification/******@****.***")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 583 bytes
    - Viewed (0)
  4. scripts/notify_translations.py

        logging.debug(f"Using config: {settings.model_dump_json()}")
        g = Github(settings.github_token.get_secret_value())
        repo = g.get_repo(settings.github_repository)
        if not settings.github_event_path.is_file():
            raise RuntimeError(
                f"No github event file available at: {settings.github_event_path}"
            )
        contents = settings.github_event_path.read_text()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. scripts/docs.py

        """
        for md_file in pages:
            add_permalinks_page(md_file, update_existing=update_existing)
    
    
    @app.command()
    def add_permalinks(update_existing: bool = False) -> None:
        """
        Add or update header permalinks in all pages of En docs.
        """
        for md_file in en_docs_path.rglob("*.md"):
            add_permalinks_page(md_file, update_existing=update_existing)
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 21 17:40:17 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

                }
                final File jspFile = new File(getServletContext().getRealPath(path));
                if (!jspFile.exists()) {
                    throwValidationError(messages -> messages.addErrorsDesignJspFileDoesNotExist(GLOBAL), this::asListHtml);
                }
                return jspFile;
            } catch (final UnsupportedEncodingException e) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/OsddHelper.java

            if (path == null) {
                logger.warn("OSDD file path could not be resolved: {}", osddPath);
                return null;
            }
            final File osddFile = new File(path);
            if (!osddFile.isFile()) {
                logger.warn("OSDD path is not a file: {}", path);
                return null;
            }
            return osddFile;
        }
    
        /**
         * Checks if OSDD link is enabled.
         *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/tomcat/webresources/FessWebResourceRoot.java

            super.processWebInfLib();
    
            final WebResource[] possibleJars = listResources("/WEB-INF/plugin", false);
    
            for (final WebResource possibleJar : possibleJars) {
                if (possibleJar.isFile() && possibleJar.getName().endsWith(".jar")) {
                    try (final JarFile jarFile = new JarFile(possibleJar.getCanonicalPath())) {
                        final Manifest manifest = jarFile.getManifest();
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

                final File noImageFile = new File(outputFile.getAbsolutePath() + NOIMAGE_FILE_SUFFIX);
                if (!noImageFile.isFile() || systemHelper.getCurrentTimeAsLong() - noImageFile.lastModified() > noImageExpired) {
                    if (noImageFile.isFile() && !noImageFile.delete()) {
                        logger.warn("Failed to delete no-image file: {}", noImageFile.getAbsolutePath());
                    }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 27K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                        if (outputFile.isFile() && !outputFile.delete()) {
                            logger.warn("Failed to delete output file: {}", outputFile.getAbsolutePath());
                        }
                        return false;
                    }
    
                    if (outputFile.isFile() && outputFile.length() == 0) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 04 08:02:36 UTC 2025
    - 16K bytes
    - Viewed (0)
Back to top