Newbie question: setting Platform.defaultDir

hi folks,

How csn I set the directory for “Platform.defaultTempDir” ?



You don’t.

You can set PathName.tmp = "wherever/you/like" and then use PathName.tmp in your code.

Platform.defaultTempDir is the default temp directory, which is set in the backend. This is the method that provides the default value for PathName.tmp (PathName’s initClass does tmp = Platform.defaultTempDir) – but PathName.tmp is the user-facing method (and this value, you can override).


PS It’s recommended to use backticks instead of double quotes to enclose code.

thank you, James, that’s clear!