« Return to Thread: How do I build an addon that's in another folder?

Re: How do I build an addon that's in another folder?

by Steve Dekorte :: Rate this Message:

Reply to Author | View in Thread


On 2009-06-18, at 8:00 PM, dennisf486 wrote:

> I tried putting a symbolic link to the foldering into the io/addons,  
> but that doesn't work because Io's Directory object categorizes the  
> link as a file

Ok, let's fix that. Can you try changing the isDirectory function in  
IoDirectory.c to this:

int isDirectory(struct dirent *dp, char *path)
{
        #ifdef DT_UNKNOWN
        if (dp->d_type == DT_UNKNOWN) return 0;
        #endif
        {
                struct stat st;
                /*fstat( dp->d_fd, &st );*/
                stat(path, &st);
                return ( (st.st_mode & S_IFMT) == S_IFDIR );
        }
}

and see if that works?

 « Return to Thread: How do I build an addon that's in another folder?