tempFolder: Create a Temporary Folder on an available file system tree

Description Usage Arguments Details Value

Description

Searches for a named file system, and creates a temporary folder

Usage

1
2
tempFolder(foldername, tmpRoot = "/tmp")
removeTempFolder(path)

Arguments

foldername

The wanted leaf node name for the created folder path

tmpRoot

A character string of length 1, containing 1 or more possible file system temporary storage paths, separated by commas

path

The full pathname to the temp folder to be removed

Details

This tries to allow creation of temporary storage in a OS independant manner, by allowing a multiplicity of named temporary storage paths. The first 'found' path is selected. No attempt to assess the quantity of free storage space is attempted.

Value

For tempFolder(), a full pathname to a valid file system location, after creating that folder and verifying its creation.

For removeTempFolder(), no return value, but the named folder subtree and all its contents is deleted.


robertdouglasmorrison/DuffyTools documentation built on Dec. 7, 2018, 8:02 a.m.