35 |
36 | ### Acknowledgements
37 |
38 | Thanks to [Otto-AA](https://github.com/Otto-AA) and [CxRes](https://github.com/CxRes) for advice and patches.
39 |
40 | copyright © 2019, 2020, [Jeff Zucker](https://github.com/jeff-zucker), may be freely distributed with the MIT license
41 |
--------------------------------------------------------------------------------
/core/src/utils/container.js:
--------------------------------------------------------------------------------
1 | // import libPath from 'path';
2 |
3 |
4 | export default async function containerAsTurtle(pathname, contentsArray, typeWanted,self) {
5 | const pathSep = self.pathSep;
6 | function basename(path) {
7 | return path.substr(path.lastIndexOf(self.pathSep) + 1);
8 | }
9 | let filenames = contentsArray.filter(item => {
10 | if (item.path && !item.path.endsWith('.acl') && !item.path.endsWith('.meta')) {
11 | return item;
12 | }
13 | });
14 | if (!pathname.endsWith(pathSep)) pathname += pathSep;
15 | let str2 = "";
16 | let str = `
17 | @prefix : <#>.
18 | @prefix ldp: | Visiting | 121 |
122 |
123 |
124 |
125 |
126 | |
127 |
| As | 130 |Local Data-Kitchen User
131 | |
132 |