Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for is_file (0.05 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. android/guava/src/com/google/common/io/Files.java

        return FilePredicate.IS_DIRECTORY;
      }
    
      /**
       * Returns a predicate that returns the result of {@link File#isFile} on input files.
       *
       * @since 15.0
       */
      public static Predicate<File> isFile() {
        return FilePredicate.IS_FILE;
      }
    
      private enum FilePredicate implements Predicate<File> {
        IS_DIRECTORY {
          @Override
          public boolean apply(File file) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 20:24:13 UTC 2025
    - 32.8K bytes
    - Viewed (0)
  6. 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)
  7. guava/src/com/google/common/io/Files.java

        return FilePredicate.IS_DIRECTORY;
      }
    
      /**
       * Returns a predicate that returns the result of {@link File#isFile} on input files.
       *
       * @since 15.0
       */
      public static Predicate<File> isFile() {
        return FilePredicate.IS_FILE;
      }
    
      private enum FilePredicate implements Predicate<File> {
        IS_DIRECTORY {
          @Override
          public boolean apply(File file) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 20:24:13 UTC 2025
    - 32.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbResourceTest.java

            void testFileTypeChecks() throws CIFSException {
                // Given
                when(mockResource.isFile()).thenReturn(true);
                when(mockResource.isDirectory()).thenReturn(false);
                when(mockResource.isHidden()).thenReturn(false);
    
                // When
                boolean isFile = mockResource.isFile();
                boolean isDirectory = mockResource.isDirectory();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  9. 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)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

                userSettingsFile = new File(commandLine.getOptionValue(CLIManager.ALTERNATE_USER_SETTINGS));
                userSettingsFile = resolveFile(userSettingsFile, workingDirectory);
    
                if (!userSettingsFile.isFile()) {
                    throw new FileNotFoundException("The specified user settings file does not exist: " + userSettingsFile);
                }
            } else {
                userSettingsFile = DEFAULT_USER_SETTINGS_FILE;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 19 18:49:57 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top