Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for oldName (0.12 sec)

  1. src/os/file_windows.go

    	oldname = filepathlite.FromSlash(oldname)
    
    	// need the exact location of the oldname when it's relative to determine if it's a directory
    	destpath := oldname
    	if v := filepathlite.VolumeName(oldname); v == "" {
    		if len(oldname) > 0 && IsPathSeparator(oldname[0]) {
    			// oldname is relative to the volume containing newname.
    			if v = filepathlite.VolumeName(newname); v != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

                return null;
              }
            };
        Callables.threadRenaming(callable, newName).call();
        assertEquals(oldName, Thread.currentThread().getName());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testRenaming_exceptionalReturn() throws Exception {
        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

                return null;
              }
            };
        Callables.threadRenaming(callable, newName).call();
        assertEquals(oldName, Thread.currentThread().getName());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testRenaming_exceptionalReturn() throws Exception {
        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/os/file_unix.go

    		if ofi, err := Lstat(oldname); err != nil {
    			if pe, ok := err.(*PathError); ok {
    				err = pe.Err
    			}
    			return &LinkError{"rename", oldname, newname, err}
    		} else if newname == oldname || !SameFile(fi, ofi) {
    			return &LinkError{"rename", oldname, newname, syscall.EEXIST}
    		}
    	}
    	err = ignoringEINTR(func() error {
    		return syscall.Rename(oldname, newname)
    	})
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. migrator.go

    	GetTypeAliases(databaseTypeName string) []string
    
    	// Tables
    	CreateTable(dst ...interface{}) error
    	DropTable(dst ...interface{}) error
    	HasTable(dst interface{}) bool
    	RenameTable(oldName, newName interface{}) error
    	GetTables() (tableList []string, err error)
    	TableType(dst interface{}) (TableType, error)
    
    	// Columns
    	AddColumn(dst interface{}, field string) error
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. src/os/file_plan9.go

    // Link creates newname as a hard link to the oldname file.
    // If there is an error, it will be of type *LinkError.
    func Link(oldname, newname string) error {
    	return &LinkError{"link", oldname, newname, syscall.EPLAN9}
    }
    
    // Symlink creates newname as a symbolic link to oldname.
    // On Windows, a symlink to a non-existent oldname creates a file symlink;
    // if oldname is later created as a directory the symlink will not work.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. migrator/migrator.go

    	})
    
    	return count > 0
    }
    
    // RenameTable rename table from oldName to newName
    func (m Migrator) RenameTable(oldName, newName interface{}) error {
    	var oldTable, newTable interface{}
    	if v, ok := oldName.(string); ok {
    		oldTable = clause.Table{Name: v}
    	} else {
    		stmt := &gorm.Statement{DB: m.DB}
    		if err := stmt.Parse(oldName); err == nil {
    			oldTable = m.CurrentTable(stmt)
    		} else {
    			return err
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
  8. src/internal/diff/diff.go

    // when in fact the algorithm is faster than the standard one.
    func Diff(oldName string, old []byte, newName string, new []byte) []byte {
    	if bytes.Equal(old, new) {
    		return nil
    	}
    	x := lines(old)
    	y := lines(new)
    
    	// Print diff header.
    	var out bytes.Buffer
    	fmt.Fprintf(&out, "diff %s %s\n", oldName, newName)
    	fmt.Fprintf(&out, "--- %s\n", oldName)
    	fmt.Fprintf(&out, "+++ %s\n", newName)
    
    	// Loop over matches to consider,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 14:13:04 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/shell.go

    	}
    	return err
    }
    
    // Symlink creates a symlink newname -> oldname.
    func (sh *Shell) Symlink(oldname, newname string) error {
    	// It's not an error to try to recreate an existing symlink.
    	if link, err := os.Readlink(newname); err == nil && link == oldname {
    		return nil
    	}
    
    	if cfg.BuildN || cfg.BuildX {
    		sh.ShowCmd("", "ln -s %s %s", oldname, newname)
    		if cfg.BuildN {
    			return nil
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

        val currentThread = Thread.currentThread()
        val oldName = currentThread.name
        currentThread.name = task.name
    
        var delayNanos = -1L
        try {
          delayNanos = task.runOnce()
        } finally {
          lock.withLock {
            afterRun(task, delayNanos)
          }
          currentThread.name = oldName
        }
      }
    
      private fun afterRun(
        task: Task,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top