symlink Questions

5

Solved

I want a create a symbolic link to a folder. The follow command will create a file with the link name but I'm trying to link to the source folder. What am I doing wrong? ln -s /Users/me/somefold...
Cavill asked 27/7, 2013 at 3:59

4

Solved

I have a script that is symlinked from one folder to another /var/www/default/index.php which is symlinked to /var/www/mysite/index.php However when i call DIR from mysite the path resolves t...
Montserrat asked 10/5, 2012 at 0:11

2

Solved

When one searches or uses the Goto file (Quick open) command (cmd+P), the search automatically includes everything from symlink folders. This makes the quick open literary useless if there is a sig...
Spalato asked 15/7, 2019 at 18:2

0

Having an issue with enums when symlinking a common enums and interfaces directory (named common, symlinked within src/ folder). For some reason, importing interfaces from this folder doesn't trigg...
Marcel asked 3/3, 2020 at 18:59

4

Solved

Suppose I have a file fname which is a symlink to a file from some other repository/project, say ../../proj2/fname. Is there a way to add/commit fname as a regular file? It seems that, by default...
Stuffed asked 12/12, 2011 at 5:34

2

Solved

I am creating an app in which I would like to make use of hardlinks and symlinks in the Android external memory filesystem. I have tried using the commands Os.link("oldpath", "newpath"); Os.link("...
Prehension asked 4/7, 2017 at 21:4

2

Solved

I want to read a symlink, and get the details of the link itself, not the contents of the linked file. How do I do that in Node, in a cross-platform way? I can detect symlinks easily using lstat, ...
Mcdevitt asked 17/8, 2018 at 13:49

2

Solved

Given a symlink, I want to know to which directory this symlink is pointing. Does the Rust standard library offer something to find this out? I have only found unstable API functions so far.
Older asked 15/10, 2015 at 19:49

7

Solved

Update I solved the problem and posted an answer. However, my solution isn't 100% ideal. I would much rather only remove the symlink from the cache with clearstatcache(true, $target) or clearstatc...
Friedrick asked 5/11, 2019 at 13:15

8

This question has appeared in similar forms here and here, but they don't seem to match up with what I'm looking for. I'm making a project in StaticMatic, a Ruby static site generator. Basically, ...
Whence asked 28/12, 2011 at 1:10

1

I have a file with name "folder/hello.js" in GIT repository. It has 10 other duplicate files in same GIT repo. Every time I checkout and modify "hello.js" I have to manually change all other 10 dup...
Enter asked 12/11, 2019 at 8:2

3

Solved

I have an original file, /path/to/foo.txt, and a symbolic link to it, /other/path/to/foo.txt. I delete /path/to/foo.txt, but leave the symbolic link in-place. How can I tell that the symbolic link ...
Mother asked 17/8, 2018 at 18:55

3

Solved

I would like to overwrite a symlink using Go but I couldn't find how to do it. If I try to create the symlink and it already exists an error is returned. My code: err := os.Symlink(filePath, sym...
Seriema asked 20/5, 2016 at 11:42

2

Solved

I've been doing stuff with the proc filesystem on linux, and I've come across some behavior I'd like to have clarified. Each process in /proc has a symlink to it's executable file, /proc/{pid}/exe...
Osmen asked 4/6, 2014 at 14:4

2

Solved

I want to create the folder: temp2 which is able to store all the symlinks of the subfolders/files of other foder: temp1. with_items can help complete this task, but it needs to list down all the f...
Loadstar asked 8/11, 2017 at 3:25

2

Solved

I have two python installations.. python --> /Users/fraz/anaconda/bin/python (python2.7) python3.7 --> /usr/local/bin/python3.7 Now.. I want reassign the commands. Such that python points ...
Lightfingered asked 6/8, 2019 at 3:26

2

Solved

I have a projects with the following structure: project-root ├── some-dir │   ├── alice.json │   ├── bob.json │   └── dave.json └── ... I want to create symlinks like the following ones: foo -...
Landreth asked 21/4, 2015 at 16:3

2

Solved

ln -s /dir1/file1 /dir2/file1 I'd like to create a softlink in target dir1 with same filename as source in dir2 How is this done without typing the file1 name over in the target path
Excisable asked 8/2, 2014 at 2:5

0

I was wondering is there any way to update the symlink target without delete the old symlink. I have two pieces of code, which happens at same time. The first piece is downloading some data every ...
Jamima asked 10/7, 2019 at 16:42

6

At a high level, the only obvious difference between NTFS Junction Points and Symbolic Links is that Junctions are only able to be directories, while SymLinks are allowed to also target files. Wha...
Wo asked 28/1, 2012 at 2:53

2

Solved

I would like to recursively copy the contents of a directory which contains symbolic links (symlinks) as well as normal files with a Bash / Shell Script. I don’t know how to copy the symlink-conten...
Neill asked 18/5, 2014 at 21:11

3

Solved

Is it possible, executing a file symlinked in /usr/local/bin folder, to get the absolute path of original script? Well, .. I know where original file is, and I know it because I am linkging i...
Abrahamabrahams asked 22/4, 2015 at 6:14

4

I've got a repo set up like this: /config config.json /worker-a Dockerfile <symlink to config.json> /code /worker-b Dockerfile <symlink to config.json> /code However, building...
Pythagorean asked 7/9, 2016 at 18:22

1

Solved

I want create a symlink, overwriting an existing file or symlink if needed. I've discovered that os.path.exists only returns True for non-broken symlinks, so I'm guessing that any test must also i...
Rundlet asked 18/4, 2019 at 6:40

3

I'm trying to check is the path symlink hardlink or junction point on windows How can I do it? os.path.islink() not work. It always returns False I create symlinks by next method: mklink /d linkPa...
Clare asked 18/6, 2013 at 16:59

© 2022 - 2024 — McMap. All rights reserved.