Shane W wrote:
> Hey all,
>
> I am using Freevo 1.8 and it appears as though freevo cache
> isn't descending into my media folders, I figure it's
> because they're largely symlinks as pointing freevo
> directly at the media works. However, for sorting and
> management, the symlink method works much better for me.
>
> I don't know Python but know perl and C so did try to solve
> this one myself. The freevo cache would seem to come back
> to the functions in util/fileops.py to do its work, mainly
> get_subdirs_recursively() which uses os.path.isdir() to
> test whether a file is a directory but the Python docs say
> isdir is true for a symlink which points to a directory so
> I can't figure why fv cache doesn't descend beyond a
> symlink. Any pointers greatly appreciated, I'm totally
> willing to hack up some sort of solution for this, just
> need to know where to look.
I've tried this on the command line and isdir() seems to work for symlinks.
# mkdir abc
# ln -s abc test
# touch def
# ln -s def test2
# python
>>> os.path.islink('test')
True
>>> os.path.isdir('test')
True
>>> os.path.isfile('test')
False
>>> os.path.ismount('test')
False
>>> os.path.islink('test2')
True
>>> os.path.isdir('test2')
False
>>> os.path.isfile('test2')
True
you could try this on you system.
HTH
Duncan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users