So I have the the current directory structure
/dir1 ---
/(sym_link) <----
file1.txt |
file2.txt |
|
/dir2 |
/(sym_link)<----|
file3.txt |
file4.txt |
|
/sym_link ----------|
sym_file1.txt
sym_file2.txt
I have been investigating using <cffile>
and <cfdirectory>
to try generate a symbolic link on a Solaris Server ( There doesn't seem to be any documentation about working with symbolic links on these tags.. or really in general)
I am aware I can run a script on the server and generate them external of ColdFusion with <cfexecute>
like here
Curious I manually created a Symbolic Link in /dir1
and did the following command
<cfdirectory action="list" directory="/dir1" recurse="false" name="myList">
<cfdump var="#myList#">
and recieved
Attributes DateLastModified Directory Link Mode Name Size Type
[empty string] 10/16/2018 09:38:53 PM /dir1 YES [empty string] sym_link 2 Dir
[empty string] 10/17/2018 03:16:38 PM /dir1 NO [empty string] file1.txt 0 File
[empty string] 10/17/2018 03:16:41 PM /dir1 NO [empty string] file2.txt 0 File
I can see that ColdFusion recognizes it as a symbolic link!
However there doesn't seem to be any way to create a DIR
with Link
set to YES
using <cfdirectory action="create">
(One approach I have been attempting to copy an existing symbolic link to where I need it, but haven't had much luck yet)
Is there anyway to create a symbolic link using ONLY ColdFusion and not running any scripts locally on the server?