- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 153 for symlinks (0.89 sec)
-
pkg/filewatcher/filewatcher_test.go
err = os.WriteFile(realTestFile, []byte("foo: bar\n"), 0o640) g.Expect(err).NotTo(HaveOccurred()) // Now, symlink the tmp `data1` dir to `data` in the baseDir os.Symlink(dataDir1, path.Join(watchDir, "data")) // And link the `<watchdir>/datadir/test.conf` to `<watchdir>/test.conf` watchFile := path.Join(watchDir, "test.conf") os.Symlink(path.Join(watchDir, "data", "test.conf"), watchFile)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 7.9K bytes - Viewed (0) -
src/os/path_test.go
t.Parallel() tmpDir := t.TempDir() dir := tmpDir + "/dir" if err := Mkdir(dir, 0755); err != nil { t.Fatalf("Mkdir %s: %s", dir, err) } link := tmpDir + "/link" if err := Symlink("dir", link); err != nil { t.Fatalf("Symlink %s: %s", link, err) } path := link + "/foo" if err := MkdirAll(path, 0755); err != nil { t.Errorf("MkdirAll %q: %s", path, err) } } func TestMkdirAllAtSlash(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 20:45:37 UTC 2023 - 3K bytes - Viewed (0) -
src/cmd/go/internal/load/path.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package load import ( "path/filepath" ) // expandPath returns the symlink-expanded form of path. func expandPath(p string) string { x, err := filepath.EvalSymlinks(p) if err == nil { return x } return p
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 20:32:02 UTC 2019 - 374 bytes - Viewed (0) -
src/os/example_test.go
func ExampleReadlink() { // First, we create a relative symlink to a file. d, err := os.MkdirTemp("", "") if err != nil { log.Fatal(err) } defer os.RemoveAll(d) targetPath := filepath.Join(d, "hello.txt") if err := os.WriteFile(targetPath, []byte("Hello, Gophers!"), 0644); err != nil { log.Fatal(err) } linkPath := filepath.Join(d, "hello.link") if err := os.Symlink("hello.txt", filepath.Join(d, "hello.link")); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 17:35:49 UTC 2024 - 8.4K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/DirectorySnapshotTest.groovy
childDir.name, childFile.name, parentFile.name, ] as Set index.values().forEach(this::assertInterned) } def "snapshot accessed via symlink is not relocated"() { def testDirectory = temporaryFolder.createDir("test") def sourceDir = testDirectory.createDir("source-directory") def targetDir = testDirectory.file("target-directory")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 23 13:19:32 UTC 2023 - 4.5K bytes - Viewed (0) -
pkg/util/filesystem/defaultfs.go
// NOTE: In case of Windows NTFS, mount points are implemented as reparse-point // (similar to symlink) and do not represent actual directory. Hence Directory existence // check for windows NTFS will NOT check for dir, but for symlink presence. func MkdirAllWithPathCheck(path string, perm os.FileMode) error { if dir, err := os.Lstat(path); err == nil { // If the path exists already,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 03 07:38:14 UTC 2023 - 4.7K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/HandleStaleOutputsStepTest.groovy
"missing file owned by but not generated by build" | false | true | false | {} "symlink owned by but not generated by build" | true | true | false | { it.createLink(it.parentFile.createFile("existing.txt")) } "broken symlink owned by but not generated by build" | true | true | false | { it.createLink(it.parentFile.file("missing.txt")) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 10:36:34 UTC 2024 - 5.4K bytes - Viewed (0) -
cmd/os-readdir-common.go
package cmd // Options for readDir function call type readDirOpts struct { // The maximum number of entries to return count int // Follow directory symlink followDirSymlink bool } // Return all the entries at the directory dirPath. func readDir(dirPath string) (entries []string, err error) { return readDirWithOpts(dirPath, readDirOpts{count: -1}) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jul 09 23:20:51 UTC 2021 - 1.3K bytes - Viewed (0) -
src/internal/syscall/windows/symlink_windows.go
package windows import "syscall" const ( ERROR_INVALID_PARAMETER syscall.Errno = 87 FILE_SUPPORTS_OBJECT_IDS = 0x00010000 FILE_SUPPORTS_OPEN_BY_FILE_ID = 0x01000000 // symlink support for CreateSymbolicLink() starting with Windows 10 (1703, v10.0.14972) SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE = 0x2 // FileInformationClass values FileBasicInfo = 0 // FILE_BASIC_INFO
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 19:06:55 UTC 2024 - 1.7K bytes - Viewed (0) -
src/cmd/go/internal/base/env.go
// // The resulting environment makes os.Getwd more efficient for a subprocess // running in dir, and also improves the accuracy of paths relative to dir // if one or more elements of dir is a symlink. func AppendPWD(base []string, dir string) []string { // POSIX requires PWD to be absolute. // Internally we only use absolute paths, so dir should already be absolute. if !filepath.IsAbs(dir) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 25 16:40:59 UTC 2022 - 1.3K bytes - Viewed (0)