Overview
| Artifact ID: | 1e5d567992a23a0d394434d826627ddf152f9866 |
|---|---|
| Ticket: | 591647ffffffffffffffffffffffffffffffffff
file copy patch to copy files not links |
| User & Date: | nobody on 2002-08-13 20:16:18 |
Changes
- icomment:
Logged In: NO This code should do it: Tcl_Obj *path = Tcl_FSLink(actualSource, NULL, 0); if (path == NULL) { break; } /* * Now we want to check if this is a relative path, * and if so, to make it absolute */ if (Tcl_FSGetPathType(path) == TCL_PATH_RELATIVE) { Tcl_Obj *abs = Tcl_FSJoinToPath (actualSource, 1, &path); if (abs == NULL) break; Tcl_IncrRefCount(abs); Tcl_DecrRefCount(path); path = abs; } Tcl_DecrRefCount(actualSource); actualSource = path; counter++; - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"