Contents

NSTemporaryDirectory()

Returns the path of the temporary directory for the current user.

Declaration

func NSTemporaryDirectory() -> String

Return Value

A string containing the path of the temporary directory for the current user.

Discussion

See the FileManager method url(for:in:appropriateFor:create:) for the preferred means of finding the correct temporary directory.

For more information about temporary files, see File System Programming Guide.

See Also

Related Documentation

Accessing user directories