Server not descending into symlinked media folders

#1
I'm currently trying to use the symlink 'trick' to allow me to mix local and network storage in a media folder. But it appears that while despite happily writing files into a symlink folder, the server won't recurse into the folder to scan for new files or to generate thumbnails. Has anyone else come across this? It seems to basically render the files unusable in the Caspar client as you can't see them.

In my experience of *nix operating systems, symlinks are kind of transparent to programs and scripts, and they get treated as real files and folders usually. I'm wondering if in Windows, a system call to list all the files or folders in a location fails to return symlinks by default, which then requires you to set a flag in the arguments to see them?

Re: Server not descending into symlinked media folders

#2
have you tried taking a look at these references? :)

Code: Select all

http://msdn.microsoft.com/en-us/library/windows/desktop/aa365006(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa363878(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365680(v=vs.85).aspx
:)
Daniel Donoghue
Client and Template Developer

Problems with CasparCG? Guide to posting Bug reports & Feature requests

Re: Server not descending into symlinked media folders

#4
you would probably be better off mapping a network share as a drive and using DFS to embed the other shared folders however, performance with mapped drives isn't always great.

if you have access to a good NAS (such as QNAP TurboNAS) you can connect to it via iSCSI as if it were a local drive and within the NAS configure all the folders to be mounted within folders if necessary. However, if you had access to the NAS you could store all your files on that anyway and not worry about the folder mounts.
Daniel Donoghue
Client and Template Developer

Problems with CasparCG? Guide to posting Bug reports & Feature requests

Re: Server not descending into symlinked media folders

#6
vimlesh1975 wrote:I also tested symlink and found that-

1. It can play from symlinked folder
2. It can record in symlinked folder.

But
1. It cann't generate thumbnails of symlinked folder files.
2. Cls command doesn't list media from symlinked folder.

I wish it can generate thumbnails and list media files from symlinked folder.
I tested this on server 2.1 beta 1 and lattest builds also. But non has this feature.
Is there some thoughts to do it in server 2.1?

Re: Server not descending into symlinked media folders

#7
This is kind of a roll-up of previous comments and some things I've discovered while playing around-
(server 2.0.7 on win7)

The CLS command will recurse into sub-dirs on the same devices as the media directory but will not cross into linked dirs of other devices. Doesn't seem to matter whether you use a junction or a soft link. (I assume this is due to the way windoze handles filename enumeration.)

The PLAY/LOAD command must get forward slashes in a file path; the output of CLS has backslashes (why?).

I haven't researched the case of the same filename in multiple directories and whether the media tree is searched breadth- or depth-first.

You can play media from a linked directory by giving the relative path ("media\video" is a directory/symbolic link to e:\video\) :

Code: Select all

play 1-10 "video/gizmo"
202 PLAY OK
As mentioned elsewhere, you can play media by giving the full path:

Code: Select all

play 1-10 e://video/gizmo.m4v
202 PLAY OK
z!

Who is online

Users browsing this forum: No registered users and 1 guest

cron