Re: [Pharo-users] [Pharo-Users] Symbolic links

2016-04-24 Thread stepharo
Valentin can you open a ticket and add all the information there? Thanks Le 20/4/16 à 15:53, Valentin Ryckewaert a écrit : Hello everyone, does someone know a way to get the real path of a symlink? I explain: -I have a file '/home/aPath/test.txt' -I have a symlink '/home/aPath/link' pointing

Re: [Pharo-users] [Pharo-Users] Symbolic links

2016-04-21 Thread Esteban A. Maringolo
2016-04-21 3:43 GMT-03:00 p...@highoctane.be : > In Windows, there are junctions, which are more or less equivalent. > > https://msdn.microsoft.com/en-us/library/windows/desktop/aa365006(v=vs.85).aspx Yeap, I use it with this tool. http://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.ht

Re: [Pharo-users] [Pharo-Users] Symbolic links

2016-04-20 Thread p...@highoctane.be
In Windows, there are junctions, which are more or less equivalent. https://msdn.microsoft.com/en-us/library/windows/desktop/aa365006(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/windows/desktop/aa365503(v=vs.85).aspx Phil On Wed, Apr 20, 2016 at 6:23 PM, Esteban Lorenzano wrote: >

Re: [Pharo-users] [Pharo-Users] Symbolic links

2016-04-20 Thread Esteban Lorenzano
yes it is. but you can create an FFI function to http://linux.die.net/man/2/readlink to get that :) Esteban > On 20 Apr 2016, at 18:11, Damien Cassou wrote: > > Esteban Lorenzano writes: > >> it has it. >> this is how is done in mac: >> >> *isSymlink= [[fileAttributes objectForKey:

Re: [Pharo-users] [Pharo-Users] Symbolic links

2016-04-20 Thread Damien Cassou
Esteban Lorenzano writes: > it has it. > this is how is done in mac: > > *isSymlink= [[fileAttributes objectForKey: NSFileType] > isEqualToString: NSFileTypeSymbolicLink] ? 1 : 0; > > and this how is done in linux: > > stat(unixPath, &statBuf) && lstat(unixPath, &statBuf) > ... > *is

Re: [Pharo-users] [Pharo-Users] Symbolic links

2016-04-20 Thread Esteban Lorenzano
it has it. this is how is done in mac: *isSymlink= [[fileAttributes objectForKey: NSFileType] isEqualToString: NSFileTypeSymbolicLink] ? 1 : 0; and this how is done in linux: stat(unixPath, &statBuf) && lstat(unixPath, &statBuf) ... *isSymlink = S_ISLNK(statBuf.st_mode); … and in w

Re: [Pharo-users] [Pharo-Users] Symbolic links

2016-04-20 Thread Damien Cassou
Damien Pollet writes: > Specifically, there is DiskStore>>isSymlink: but the FilePlugin doesn't > seem to have a primitive for the readlink(2) function of the libc I guess this is work for Mariano then :-) -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go fr

Re: [Pharo-users] [Pharo-Users] Symbolic links

2016-04-20 Thread Damien Pollet
Specifically, there is DiskStore>>isSymlink: but the FilePlugin doesn't seem to have a primitive for the readlink(2) function of the libc On 20 April 2016 at 15:53, Valentin Ryckewaert < valentin.ryckewa...@gmail.com> wrote: > Hello everyone, > > does someone know a way to get the real path of a

[Pharo-users] [Pharo-Users] Symbolic links

2016-04-20 Thread Valentin Ryckewaert
Hello everyone, does someone know a way to get the real path of a symlink? I explain: -I have a file '/home/aPath/test.txt' -I have a symlink '/home/aPath/link' pointing on test.txt I would like to see if the symlink really point on the file and may be, get the real path of it, is there a way to