File tree 3 files changed +28
-1
lines changed
3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 175
175
dst -> tail = abs (clen );
176
176
//Append_Bytes(dst, lpath);
177
177
#endif
178
- Append_Byte (dst , OS_DIR_SEP );
178
+ if (OS_DIR_SEP != UNI_LAST (dst )[0 ])
179
+ Append_Byte (dst , OS_DIR_SEP );
179
180
OS_FREE (lpath );
180
181
}
181
182
out = UNI_HEAD (dst );
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ dt [ ;- delta time
30
30
wrap load %units/compress-test.r3
31
31
wrap load %units/date-test.r3
32
32
wrap load %units/image-test.r3
33
+ wrap load %units/file-test.r3
33
34
34
35
recycle/torture
35
36
recycle
Original file line number Diff line number Diff line change
1
+ Rebol [
2
+ Title: "Rebol3 file test script"
3
+ Author: "Oldes"
4
+ File: %file-test.r3
5
+ Tabs: 4
6
+ Needs: [%../quick-test-module.r3 ]
7
+ ]
8
+
9
+ ~~~start-file~~~ "FILE tests"
10
+
11
+ ===start-group=== "to-local-file"
12
+
13
+ --test-- "issues/2351"
14
+ ;@@ https://github.com/rebol/rebol-issues/issues/2351
15
+ f: first read what-dir
16
+ --assert (to-rebol-file to-local-file /full f) = join what-dir f
17
+
18
+ d: what-dir
19
+ cd %/ f: first read %/
20
+ --assert (to-rebol-file to-local-file /full f) = join what-dir f
21
+ cd d
22
+
23
+ ===end-group===
24
+
25
+ ~~~end-file~~~
You can’t perform that action at this time.
0 commit comments