class Tempdir

Overview

Creates a temporary directory.

Defined in:

tempdir.cr

Constant Summary

VERSION = "1.0.1"

Constructors

Instance Method Summary

Class methods inherited from class Dir

mktmpdir(**args)
mktmpdir(**args, &)
mktmpdir

Constructor Detail

def self.new(**args) #

Creates a new temporary directory.

The given arguments will be passed to File.tempname as-is.

Directory will be created with 0o700 permission.

This method raises ArgumentError if parent directory of created directory is writable by others and not skicky bit is set.


[View source]

Instance Method Detail

def close #

Close temporary directory and remove its entries.


[View source]