set link_target [file join $localbase_path $suffix_path]
} else {
#review - calling mount and parsing its output every time we parse a .lnk file makes this slow on large folders with .lnk files
# - we may want to cache the results of mount for some period of time or until we detect a change in the system's mounts (e.g. by monitoring /proc/mounts for changes or using a filesystem watcher on /mnt)
set suffix_path [string trimleft [string map {\\ /} $suffix_path] /]
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
set localbase_path [string map {\\ /} $localbase_path]
set link_target [file join $localbase_path $suffix_path]
} else {
#review - calling mount and parsing its output every time we parse a .lnk file makes this slow on large folders with .lnk files
# - we may want to cache the results of mount for some period of time or until we detect a change in the system's mounts (e.g. by monitoring /proc/mounts for changes or using a filesystem watcher on /mnt)
set suffix_path [string trimleft [string map {\\ /} $suffix_path] /]
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
set localbase_path [string map {\\ /} $localbase_path]
set link_target [file join $localbase_path $suffix_path]
} else {
#review - calling mount and parsing its output every time we parse a .lnk file makes this slow on large folders with .lnk files
# - we may want to cache the results of mount for some period of time or until we detect a change in the system's mounts (e.g. by monitoring /proc/mounts for changes or using a filesystem watcher on /mnt)
set suffix_path [string trimleft [string map {\\ /} $suffix_path] /]
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
set localbase_path [string map {\\ /} $localbase_path]
set link_target [file join $localbase_path $suffix_path]
} else {
#review - calling mount and parsing its output every time we parse a .lnk file makes this slow on large folders with .lnk files
# - we may want to cache the results of mount for some period of time or until we detect a change in the system's mounts (e.g. by monitoring /proc/mounts for changes or using a filesystem watcher on /mnt)
set suffix_path [string trimleft [string map {\\ /} $suffix_path] /]
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
set localbase_path [string map {\\ /} $localbase_path]
set link_target [file join $localbase_path $suffix_path]
} else {
#review - calling mount and parsing its output every time we parse a .lnk file makes this slow on large folders with .lnk files
# - we may want to cache the results of mount for some period of time or until we detect a change in the system's mounts (e.g. by monitoring /proc/mounts for changes or using a filesystem watcher on /mnt)
set suffix_path [string trimleft [string map {\\ /} $suffix_path] /]
if {[regexp {([a-zA-Z]):\\(.*)} $localbase_path _match drive_letter tail]} {
set localbase_path [string map {\\ /} $localbase_path]