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

tempFolderR Documentation

Create a Temporary Folder on an available file system tree

Description

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

Usage

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 April 13, 2025, 8:51 p.m.