};
export const extractFilesData = (document: Document) => {
- const collectionUrlPrefix = /\/c=([^\/]*)/;
+ const collectionUrlPrefix = /\/c=([^/]*)/;
return Array
.from(document.getElementsByTagName('D:response'))
.slice(1) // omit first element which is collection itself
export const getFileFullPath = ({ name, path }: CollectionFile | CollectionDirectory) => {
return `${path}/${name}`;
-};
\ No newline at end of file
+};