Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 79 for newNames (0.18 sec)

  1. src/os/file_windows.go

    			n--
    		}
    		return syscall.UTF16ToString(b[:n])
    	}
    }
    
    // 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 {
    	n, err := syscall.UTF16PtrFromString(fixLongPath(newname))
    	if err != nil {
    		return &LinkError{"link", oldname, newname, err}
    	}
    	o, err := syscall.UTF16PtrFromString(fixLongPath(oldname))
    	if err != nil {
    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. src/cmd/vendor/golang.org/x/telemetry/internal/upload/upload.go

    	fdate = fdate[len(fdate)-len("2006-01-02"):]
    
    	newname := filepath.Join(u.dir.UploadDir(), fdate+".json")
    	if _, err := os.Stat(newname); err == nil {
    		// Another process uploaded but failed to clean up (or hasn't yet cleaned
    		// up). Ensure that cleanup occurs.
    		_ = os.Remove(fname)
    		return false
    	}
    
    	// Lock the upload, to prevent duplicate uploads.
    	{
    		lockname := newname + ".lock"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt

          story === Story.MISSING,
          "Test stories missing, checkout git submodule",
        )
    
        val newCases = mutableListOf<Case>()
        for (case in story.cases) {
          hpackWriter.writeHeaders(case.headersList)
          newCases += case.copy(wire = bytesOut.readByteString())
        }
    
        testDecoder(story.copy(cases = newCases))
      }
    
      companion object {
        private val RAW_DATA = arrayOf("raw-data")
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/os/file_unix.go

    				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 {
    		return &LinkError{"rename", oldname, newname, err}
    	}
    	return 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/migrator.go

    func (m Migrator) RenameColumn(value interface{}, oldName, newName string) error {
    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		if stmt.Schema != nil {
    			if field := stmt.Schema.LookUpField(oldName); field != nil {
    				oldName = field.DBName
    			}
    
    			if field := stmt.Schema.LookUpField(newName); field != nil {
    				newName = field.DBName
    			}
    		}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
  6. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/configurer/HierarchicalElementDeduplicatorTest.groovy

                element.newName = name
            }
        }
    
        private elementName(String path) {
            elements.find { it.path == path }.newName
        }
    
        private class DummyElement {
            String name
            String identityName
            String newName
            DummyElement parent
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  7. pkg/kube/krt/helpers.go

    // and will automatically implement the various interfaces to return the name, namespace, and a key based on these two.
    type Named struct {
    	Name, Namespace string
    }
    
    // NewNamed builds a Named object from a Kubernetes object type.
    func NewNamed(o metav1.Object) Named {
    	return Named{Name: o.GetName(), Namespace: o.GetNamespace()}
    }
    
    func (n Named) ResourceName() string {
    	return n.Namespace + "/" + n.Name
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. 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
    	DropColumn(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)
  9. pkg/kube/krt/bench_test.go

    		if p.Status.PodIP == "" {
    			return nil
    		}
    		services := krt.Fetch(ctx, Services, krt.FilterIndex(ServicesByNamespace, p.Namespace), krt.FilterSelectsNonEmpty(p.GetLabels()))
    		return &Workload{
    			Named:        krt.NewNamed(p),
    			IP:           p.Status.PodIP,
    			ServiceNames: slices.Map(services, func(e *v1.Service) string { return e.Name }),
    		}
    	})
    	Workloads.Register(func(e krt.Event[Workload]) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. src/internal/diff/diff.go

    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)
Back to top