Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. 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++;
    
    
    
    
  2. login: "nobody"
  3. mimetype: "text/plain"
  4. username: "nobody"