Function: defaultpathNew

CALL:

Retrieve path or history: [NewPath]=defaultpathNew(tag) [NewPath,Pathlist]=defaultpathNew(tag) Set path and history: defaultpathNew(tag,NewPath) [NewPath]=defaultpathNew(tag,NewPath) [NewPath,Pathlist]=defaultpathNew(tag,NewPath)

DESCRIPTION:

Store or retrieve default path NOTE: this module replaces defaultpath

INPUT:

      tag: integer of char string identifier (deafults to 1).
      NewPath: path history
            if no input, path will be retrieved from preference settings
            if setting does not exist, default path = pwd/data
            if directory pwd/data does not exist default path =defaultPath
      defaultPath (optioneel) default: pwd
  

OUTPUT:

      NewPath: preferred path (existence has been checked)
Pathlist any
history of last 25 selected paths (existence has been checked