symlink

Can't commit svn controlled directory when referencing through symlink

I have a problem that I describe poorly in another question. I'm posting this to make it more clear what I want to do, and what problem I'm encountering. There is a highly-voted answer, but it doesn't actually address my problem (short story: I'm not trying to add a symlinked directory to my version-controlled project). If you already k...

ANT, tar task: create symbolic links in the output .tar.gz file?

We are using Windows as development system and ANT to create the platform-specific bundles. For the Mac OS X specific bundle (.tar.gz file) we are using the tar task. I want to create a symbolic link in the output .tar.gz file which points to another file in the same .tar.gz file. Can this be done using ANT? ...

mdfind used for creating symlinks not working as expected.

I am trying to use the output from 'mdfind' to create a bunch of symlinks. Output of 'mdfind' is like this: /pathtofile1/ /pathtofile2/ /pathtofile3/ So, I used 'sed' to add 'ln -s ' to the start of each line, and awk {print $0 "/directory where I want this/"}; after my single-line script successfully outputs this: ln -s "...

Issue with symlinks and file uploads...

I'm having this weird thing happen. My Zend Framework (PHP) web application that I have been developing locally works fine on my computer, but once it's uploaded to the server, it thinks that the uploads directory doesn't exist. My application has an uploads directory which is a symlink to a directory outside of the application: #local...

Dynamic (Default.png) splashscreen in 3.0 [iPhone SDK]

I know it's possible to create a dynamically changable Default.png by creating a symbolic link. But that's not possible in iPhone SDK 3.0 anymore (only in 2.0). How can I make this in 3.0, or is this impossible? Tim This worked on iPhone OS 2.0 http://collison.ie/blog/2008/11/dynamic-defaultpng-files-on-the-iphone but not on iPhone OS 3...

How to treat a symbolic link as a directory in Mercurial?

As of 0.9.4, when adding a symbolic link Mercurial keeps track of the link itself, and not the file or directories it points to. However, there are cases when it is desirable to keep track of the files pointed to by the symbolic link. How can I force Mercurial to treat the symbolic link to a directory as a regular directory? ...

Implementing symlinks in a virtual file system

I'm working on a virtual file system which isn't disk based, kind of like /proc. Now I want to create a symlink within it to a target on a ext3 file system. I haven't found any standard documentation on ways to achieve this. What I've guessed so far is that I have to write a function to put in for symlink in struct inode_operations. But ...

Mercurial symlinks on Windows.

I've been googling for a while now but I was surprised to be unable to find an answer to this, quite simple, question. With mercurial 1.4, when I clone a repository on a windows client, symlinks appear as a file containing the path to the original file. I don't use symlinks extensively, but I do use them for shared lib handling (libpng...

how to check what symlinks are used in a folder in windows 7

Hello, I've been looking at the windows 7 symlinks (using mklink) [Ed.- they are also supported on Vista, WS2003, WS2008], and I was wondering if it were possible to programmatically determine if a folder were a symlink. Thanks for any help. ~ Steve ...

Difference between test -h and test -L

What is the difference between test -L filename and test -h filename in ksh shell. From the man page, both were used to identify a symbolic link, but I want to know the exact difference. Here is the description from the man page. -h file True if file exists and is a sym- bolic link. -L file...

How to acess ctime, mtime, … of a symbolic link?

On unix symlinks are pointers to another file. Not only the file but also the symlink has a ctime, mtime, …. I know the symlinks time can be accessed, as ls displays it. If I use one of ruby's File#ctime, File#mtime, …, I always get the attribute of the file the symlink is pointing to, not of the symlink. How can I read this values in ru...

Is it possible to add a symlink to a repository via TortoiseSVN?

I'd like to add a symlink to an SVN repository via TortoiseSVN. SVN does support symlinks as "special" files, but Windows can't create POSIX symlinks. Is there some magical workaround? Would creating one through, e.g., cygwin do the trick? ...

How to have Git 1.6 follow "beyond symlinks"

Apparently, the bug where git follows and track files beyond symlinks (git add symlink/) has been fixed around v1.6. Now this was a bug that works in my favor. Now that we've upgraded to v1.6.3.3, is there any way to reproduce that behavior without downgrading? ...

Renaming a file in Java without using renameTo()

Disregarding my last post, I've found the source of the problem. I'm using a.renameTo(b) when b doesn't exist. The reason it doesn't exist is because there is a symbolic link so if b is "/usr/name/folder/file", then b really is "/mnt/MountTest" because the symlink is to that directory. So the question is, is there an alternative way...

Unix softlinks and paths

I am somewhat confused how soft links work in unix. See the example. % cd /usr/local/ % ls -la total 6 drwxr-xr-x 2 root root 512 Jan 19 15:03 . drwxr-xr-x 41 root sys 1024 Jan 20 16:24 .. lrwxrwxrwx 1 root root 38 Jan 19 15:03 java -> /otherDir/java/jdk1.6.0_17 **<- this is a soft link** % ...

Hook for tab completion in emacs (interactive) file input?

In emacs, the following will define a function that, when called interactively, will ask the user for a filename: (defun do-something (filename ) (interactive "FFilename: ") ... ) When the user is entering a filename, they can use tab-completion, etc. Does anyone know if there are any hooks in that file-entry code? In particul...

Symbolic link to latest file in a folder

Hello, I have a program which requires the path to various files. The files live in different folders and are constantly updated, at irregular intervals. When the files are updated, they change name, so, for instance, in the folder dir1 I have fv01 and fv02. Later on the day someone adds fv02_v1; the day after someone adds fv03 and so...

Use distribute/setuptools to create symlink (or run script)?

As part of my project's setup process, I need to symlink one of the packages to a specified directory so an init.d script can find it. Is there any way to add this as a post-processing command to setup()? I would even settle for creating another file that creates the link and pass it to setup() as part of some kwarg list of "run these" (...

What SCM does support symlinks under Windows and Linux?

I found out that subversion doesn't support symlinks under Windows. I'm wondering if somebody knows a SCM tool that is able to work with symlinks under both Windows and Linux? SCM tools currently missing symlink support under Windows: Clear Case Subversion Mercurial Perforce ...

Java: check symbolic link file existence

We talk about java 1.6 here. Since symoblic link is not yet supported, how can examine the existence of them. 1: tell wheather the link file itself exists (return true even if the link is broken) 2: follow the link and tell wheather underlying file exists. Is there really no way to realize this except JNI? ...