|
37 | 37 | },
|
38 | 38 | {
|
39 | 39 | "cell_type": "code",
|
40 |
| - "execution_count": 13, |
| 40 | + "execution_count": 1, |
41 | 41 | "id": "80285f6a-8134-4055-9430-a48a5f79e7d3",
|
42 | 42 | "metadata": {
|
43 | 43 | "editable": true,
|
|
47 | 47 | },
|
48 | 48 | "tags": [],
|
49 | 49 | "ExecuteTime": {
|
50 |
| - "end_time": "2024-01-26T15:19:22.114754741Z", |
51 |
| - "start_time": "2024-01-26T15:19:22.097367591Z" |
| 50 | + "end_time": "2024-04-11T09:12:36.623396Z", |
| 51 | + "start_time": "2024-04-11T09:12:36.607832Z" |
52 | 52 | }
|
53 | 53 | },
|
54 | 54 | "outputs": [],
|
|
80 | 80 | "metadata": {
|
81 | 81 | "collapsed": false,
|
82 | 82 | "ExecuteTime": {
|
83 |
| - "end_time": "2024-01-26T15:19:22.136688151Z", |
84 |
| - "start_time": "2024-01-26T15:19:22.118123240Z" |
| 83 | + "end_time": "2024-04-11T09:12:36.643982Z", |
| 84 | + "start_time": "2024-04-11T09:12:36.624942Z" |
85 | 85 | }
|
86 | 86 | },
|
87 | 87 | "id": "b5a74cd424da1322",
|
88 |
| - "execution_count": 14 |
| 88 | + "execution_count": 2 |
89 | 89 | },
|
90 | 90 | {
|
91 | 91 | "cell_type": "markdown",
|
|
119 | 119 | },
|
120 | 120 | {
|
121 | 121 | "cell_type": "code",
|
122 |
| - "execution_count": 15, |
| 122 | + "execution_count": 3, |
123 | 123 | "id": "6ef73b42-a7ad-4bfb-9420-7d4def269459",
|
124 | 124 | "metadata": {
|
125 | 125 | "ExecuteTime": {
|
126 |
| - "end_time": "2024-01-26T15:19:22.163041433Z", |
127 |
| - "start_time": "2024-01-26T15:19:22.162505020Z" |
| 126 | + "end_time": "2024-04-11T09:12:36.663743Z", |
| 127 | + "start_time": "2024-04-11T09:12:36.645272Z" |
128 | 128 | }
|
129 | 129 | },
|
130 | 130 | "outputs": [],
|
|
208 | 208 | },
|
209 | 209 | {
|
210 | 210 | "cell_type": "code",
|
211 |
| - "execution_count": 16, |
| 211 | + "execution_count": 4, |
212 | 212 | "id": "82c3962a-27b5-4375-b4fa-dbd14dcfc93b",
|
213 | 213 | "metadata": {
|
214 | 214 | "ExecuteTime": {
|
215 |
| - "end_time": "2024-01-26T15:19:22.163577450Z", |
216 |
| - "start_time": "2024-01-26T15:19:22.162712488Z" |
| 215 | + "end_time": "2024-04-11T09:12:36.668571Z", |
| 216 | + "start_time": "2024-04-11T09:12:36.665380Z" |
217 | 217 | }
|
218 | 218 | },
|
219 | 219 | "outputs": [
|
|
280 | 280 | },
|
281 | 281 | {
|
282 | 282 | "cell_type": "code",
|
283 |
| - "execution_count": 17, |
| 283 | + "execution_count": 5, |
284 | 284 | "id": "0fcf0214-2561-488a-8eee-0330ca27710d",
|
285 | 285 | "metadata": {
|
286 | 286 | "scrolled": true,
|
287 | 287 | "ExecuteTime": {
|
288 |
| - "end_time": "2024-01-26T15:19:22.214909881Z", |
289 |
| - "start_time": "2024-01-26T15:19:22.162824704Z" |
| 288 | + "end_time": "2024-04-11T09:12:36.686899Z", |
| 289 | + "start_time": "2024-04-11T09:12:36.669793Z" |
290 | 290 | }
|
291 | 291 | },
|
292 | 292 | "outputs": [
|
293 | 293 | {
|
294 | 294 | "data": {
|
295 |
| - "text/markdown": "> **Result:**\n> `file:///tmp/logo.jpg`" |
| 295 | + "text/markdown": "> **Result:**\n> `file:///some/path/to/logo.jpg`" |
296 | 296 | },
|
297 | 297 | "metadata": {},
|
298 | 298 | "output_type": "display_data"
|
|
326 | 326 | "outputs": [
|
327 | 327 | {
|
328 | 328 | "data": {
|
329 |
| - "text/markdown": "> **Result:**\n> `/tmp/logo.jpg`" |
| 329 | + "text/markdown": "> **Result:**\n> `/some/path/to/logo.jpg`" |
330 | 330 | },
|
331 | 331 | "metadata": {},
|
332 | 332 | "output_type": "display_data"
|
333 | 333 | }
|
334 | 334 | ],
|
335 | 335 | "source": [
|
336 |
| - "from openassetio.utils import FileUrlPathConverter\n", |
| 336 | + "from openassetio.utils import FileUrlPathConverter, PathType\n", |
337 | 337 | "\n",
|
338 |
| - "path = FileUrlPathConverter().pathFromUrl(url) # also .pathToUrl\n", |
| 338 | + "path = FileUrlPathConverter().pathFromUrl(url, PathType.kPOSIX) # also .pathToUrl\n", |
339 | 339 | "\n",
|
340 | 340 | "helpers.display_result(path)"
|
341 | 341 | ],
|
342 | 342 | "metadata": {
|
343 | 343 | "collapsed": false,
|
344 | 344 | "ExecuteTime": {
|
345 |
| - "end_time": "2024-01-26T15:19:22.215290879Z", |
346 |
| - "start_time": "2024-01-26T15:19:22.210713037Z" |
| 345 | + "end_time": "2024-04-11T09:12:36.691020Z", |
| 346 | + "start_time": "2024-04-11T09:12:36.687691Z" |
347 | 347 | }
|
348 | 348 | },
|
349 | 349 | "id": "2da05320a928e846",
|
350 |
| - "execution_count": 18 |
| 350 | + "execution_count": 6 |
351 | 351 | }
|
352 | 352 | ],
|
353 | 353 | "metadata": {
|
|
0 commit comments