TOC PREV NEXT INDEX

 


Accessing Unwrapped Files


If your wrapped application attempts to access unwrapped files using relative pathnames, it runs the risk of accidentally accessing a file in the internal archive instead (that is, file shadowing). To ensure that your application always accesses unwrapped files when desired, you should always use absolute pathnames in a wrapped application.

In particular, you should be careful in how your application handles cases where a user can enter a file name. If a user enters a relative pathname for a file, you should convert it to an absolute pathname. For example, if the variable path contains a relative file name, you can create an absolute file name by appending it to the current working directory:


set path [file join [pwd] $path]



http://www.ajubasolutions.com
Voice: (650) 210-0100
Fax: (650) 210-0101
support@ajubasolutions.com
TOC PREV NEXT INDEX