Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#71 Custom import.js and recursive inotify fail

0.12.0
open
Jin
5
2010-05-05
2010-05-05
Anonymous
No

Hi,

I have a custom import.js script that work with inotify basic, but fail with inotify full.

My directory tree is:
- video
- Movies
- Movie 1
- Movie 2
- ...
- Series
- Serie 1
- 101 - Episode one.avi
- 102 - Episode two.avi
- ...

My custom import.js script on video section is:
function addVideo(obj)
{
var chain = new Array('Video', 'All Video');
addCdsObject(obj, createContainerChain(chain));

var dir = getRootPath(object_root_path, obj.location);

if (dir.length > 0)
{
chain = new Array('Video', 'Category');
chain = chain.concat(dir.slice(1));

addCdsObject(obj, createContainerChain(chain));
}
}

Thanks.

Discussion