- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 385 for symlink2 (0.11 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) -
platforms/core-configuration/file-collections/src/testFixtures/groovy/org/gradle/api/internal/file/collections/AbstractDirectoryWalkerTest.groovy
subDir.mkdirs() generateFilesAndSubDirectories(subDir, fileCount, dirCount, maxDepth, currentDepth + 1, fileIdGenerator) } } } @Requires(UnitTestPreconditions.Symlinks) def "symbolic links for directories are handled properly - walker: #walkerInstance.class.simpleName"() { given: def rootDir = tmpDir.createDir("root") def dir = rootDir.createDir("a/b")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 7K 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/fsys/fsys_test.go
} } func TestWalkSymlink(t *testing.T) { testenv.MustHaveSymlink(t) initOverlay(t, `{ "Replace": {"overlay_symlink/file": "symlink/file"} } -- dir/file --`) // Create symlink if err := os.Symlink("dir", "symlink"); err != nil { t.Error(err) } testCases := []struct { name string dir string wantFiles []string }{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:52:11 UTC 2023 - 29.1K bytes - Viewed (0) -
src/archive/tar/testdata/hdr-only.tar
fifo file The quick brown fox jumped over the lazy dog! hardlink null sda symlink badlink fifo The quick brown fox jumped over the lazy dog! hardlink sda symli badlink...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 01 20:16:26 UTC 2015 - 10K 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) -
testing/internal-testing/src/main/resources/valid-precondition-combinations.csv
UnitTestPreconditions$SmartTerminalAvailable UnitTestPreconditions$StableGroovy UnitTestPreconditions$StableGroovy,UnitTestPreconditions$Jdk11OrLater,UnitTestPreconditions$Jdk21OrEarlier UnitTestPreconditions$Symlinks UnitTestPreconditions$Unix UnitTestPreconditions$UnixDerivative UnitTestPreconditions$UnixDerivative,PluginTestPreconditions$BashAvailable UnitTestPreconditions$UnixDerivative,PluginTestPreconditions$DashAvailable
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 20:20:38 UTC 2024 - 9.5K 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)