Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Collection : null #2

Description

@jcolar25

Hello,

I am using your script to connect an Apache Webdav Server but I have an error on this line : (null has the null value in IE)
var collection = resourcetype.getElementsByTagName('D:collection')[0];

I need to modify the lines :

/*
var collection = resourcetype.getElementsByTagName('D:collection')[0];
if(collection) {
result[i-1] = new fs.dir(href);
} else {
result[i-1] = new fs.file(href);
}
*/
result[i-1] = new fs.dir(href);

What do I need to resolve the collection's problem ?

Thanks !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions