Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for renameTo (0.07 sec)

  1. src/test/java/jcifs/tests/FileOperationsTest.java

                f.createNewFile();
                boolean renamed = false;
                try {
                    f.renameTo(f2);
                    try {
                        assertTrue(f2.exists());
                        renamed = true;
                    }
                    finally {
                        f2.delete();
                    }
                }
                finally {
                    if ( !renamed && f.exists() ) {
                        f.delete();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                // File.renameTo operation doesn't really work across file systems.
                // So we will attempt to do a File.renameTo for efficiency and atomicity, if this fails
                // then we will use a brute force copy and delete the temporary file.
                if (!temp.renameTo(destination)) {
                    try {
                        Files.copy(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesTest.java

          super(file.getPath());
          this.canRename = canRename;
          this.canDelete = canDelete;
        }
    
        @Override
        public boolean renameTo(File to) {
          return canRename && super.renameTo(to);
        }
    
        @Override
        public boolean delete() {
          return canDelete && super.delete();
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesTest.java

          super(file.getPath());
          this.canRename = canRename;
          this.canDelete = canDelete;
        }
    
        @Override
        public boolean renameTo(File to) {
          return canRename && super.renameTo(to);
        }
    
        @Override
        public boolean delete() {
          return canDelete && super.delete();
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbResource.java

         * change). To access the renamed file it is necessary to construct a
         * new <tt>SmbResource</tt></i>.
         *
         * @param dest
         *            An <code>SmbResource</code> that represents the new pathname
         * @throws CIFSException
         * @throws NullPointerException
         *             If the <code>dest</code> argument is <code>null</code>
         */
        void renameTo ( SmbResource dest ) throws CIFSException;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 26K bytes
    - Viewed (1)
  6. src/main/java/jcifs/smb/SmbFile.java

        }
    
    
        @Override
        public void renameTo ( SmbResource d ) throws SmbException {
            renameTo(d, false);
        }
    
    
        @Override
        public void renameTo ( SmbResource d, boolean replace ) throws SmbException {
            if ( ! ( d instanceof SmbFile ) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/Files.java

        checkNotNull(from);
        checkNotNull(to);
        checkArgument(!from.equals(to), "Source %s and destination %s must be different", from, to);
    
        if (!from.renameTo(to)) {
          copy(from, to);
          if (!from.delete()) {
            if (!to.delete()) {
              throw new IOException("Unable to delete " + to);
            }
            throw new IOException("Unable to delete " + from);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Files.java

        checkNotNull(from);
        checkNotNull(to);
        checkArgument(!from.equals(to), "Source %s and destination %s must be different", from, to);
    
        if (!from.renameTo(to)) {
          copy(from, to);
          if (!from.delete()) {
            if (!to.delete()) {
              throw new IOException("Unable to delete " + to);
            }
            throw new IOException("Unable to delete " + from);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFile.java

     * change). To access the renamed file it is necessary to construct a
     * new <tt>SmbFile</tt></i>.
     *
     * @param  dest  An <code>SmbFile</code> that represents the new pathname
     * @throws NullPointerException
     *         If the <code>dest</code> argument is <code>null</code>
     */
        public void renameTo( SmbFile dest ) throws SmbException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 107.9K bytes
    - Viewed (0)
  10. ci/official/containers/linux_arm64/devel.usertools/rename_and_verify_wheels.sh

    # Check and rename wheels with auditwheel. Inserts the platform tags like
    # "manylinux_xyz" into the wheel filename.
    set -euxo pipefail
    
    for wheel in /tf/pkg/*.whl; do
      echo "Checking and renaming $wheel..."
      time python3 -m auditwheel repair --plat manylinux2014_aarch64 "$wheel" --wheel-dir /tf/pkg 2>&1 | tee check.txt
    
      # We don't need the original wheel if it was renamed
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Sep 18 19:00:37 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top