set link_target [file join $localbase_path $suffix_path]
set link_target [file join $localbase_path $suffix_path]
} else {
} else {
set suffix_path [string map {\\ /} $suffix_path]
set suffix_path [string trimleft [string map {\\ /} $suffix_path] /]
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
set localbase_path [string map {\\ /} $localbase_path]
set localbase_path [string map {\\ /} $localbase_path]
set tail [string map {\\ /} $tail]
set tail [string trimleft [string map {\\ /} $tail] /]
set link_target ""
set link_target ""
#shortcut basepath is a windows path with drive letter - try to resolve it on unix by looking for a corresponding mount from fstab or a point under /mnt
#shortcut basepath is a windows path with drive letter - try to resolve it on unix by looking for a corresponding mount from fstab or a point under /mnt
set link_target [file join $localbase_path $suffix_path]
set link_target [file join $localbase_path $suffix_path]
} else {
} else {
set suffix_path [string map {\\ /} $suffix_path]
set suffix_path [string trimleft [string map {\\ /} $suffix_path] /]
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
set localbase_path [string map {\\ /} $localbase_path]
set localbase_path [string map {\\ /} $localbase_path]
set tail [string map {\\ /} $tail]
set tail [string trimleft [string map {\\ /} $tail] /]
set link_target ""
set link_target ""
#shortcut basepath is a windows path with drive letter - try to resolve it on unix by looking for a corresponding mount from fstab or a point under /mnt
#shortcut basepath is a windows path with drive letter - try to resolve it on unix by looking for a corresponding mount from fstab or a point under /mnt
set link_target [file join $localbase_path $suffix_path]
set link_target [file join $localbase_path $suffix_path]
} else {
} else {
set suffix_path [string map {\\ /} $suffix_path]
set suffix_path [string trimleft [string map {\\ /} $suffix_path] /]
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
set localbase_path [string map {\\ /} $localbase_path]
set localbase_path [string map {\\ /} $localbase_path]
set tail [string map {\\ /} $tail]
set tail [string trimleft [string map {\\ /} $tail] /]
set link_target ""
set link_target ""
#shortcut basepath is a windows path with drive letter - try to resolve it on unix by looking for a corresponding mount from fstab or a point under /mnt
#shortcut basepath is a windows path with drive letter - try to resolve it on unix by looking for a corresponding mount from fstab or a point under /mnt
set link_target [file join $localbase_path $suffix_path]
set link_target [file join $localbase_path $suffix_path]
} else {
} else {
set suffix_path [string map {\\ /} $suffix_path]
set suffix_path [string trimleft [string map {\\ /} $suffix_path] /]
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
set localbase_path [string map {\\ /} $localbase_path]
set localbase_path [string map {\\ /} $localbase_path]
set tail [string map {\\ /} $tail]
set tail [string trimleft [string map {\\ /} $tail] /]
set link_target ""
set link_target ""
#shortcut basepath is a windows path with drive letter - try to resolve it on unix by looking for a corresponding mount from fstab or a point under /mnt
#shortcut basepath is a windows path with drive letter - try to resolve it on unix by looking for a corresponding mount from fstab or a point under /mnt
set link_target [file join $localbase_path $suffix_path]
set link_target [file join $localbase_path $suffix_path]
} else {
} else {
set suffix_path [string map {\\ /} $suffix_path]
set suffix_path [string trimleft [string map {\\ /} $suffix_path] /]
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
set localbase_path [string map {\\ /} $localbase_path]
set localbase_path [string map {\\ /} $localbase_path]
set tail [string map {\\ /} $tail]
set tail [string trimleft [string map {\\ /} $tail] /]
set link_target ""
set link_target ""
#shortcut basepath is a windows path with drive letter - try to resolve it on unix by looking for a corresponding mount from fstab or a point under /mnt
#shortcut basepath is a windows path with drive letter - try to resolve it on unix by looking for a corresponding mount from fstab or a point under /mnt