Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fileToCheck (0.8 sec)

  1. src/main/java/org/codelibs/core/io/FileUtil.java

         * </p>
         *
         * @param fileToCheck the file to validate (must not be {@literal null})
         * @param baseDirectory the base directory that the file must be within (must not be {@literal null})
         * @return true if the file is safe (within the base directory), false otherwise
         */
        public static boolean isPathSafe(final File fileToCheck, final File baseDirectory) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            CIFSContext cleanupContext = createFreshContext();
            SmbFile fileToCheck = new SmbFile(baseUrl + "shared/nonemptydir_" + timestamp + "/file.txt", cleanupContext);
            if (fileToCheck.exists()) {
                fileToCheck.delete();
                Thread.sleep(200);
            }
    
            CIFSContext finalContext = createFreshContext();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
Back to top