lux-lib 0.54.4

Library for the lux package manager for Lua
Documentation
1
2
3
4
5
6
7
8
use tempfile::TempDir;

use crate::fs::FsError;

/// Wrapped [`tempfile::tempdir`].
pub(crate) fn tempdir() -> Result<TempDir, FsError> {
    tempfile::tempdir().map_err(|source| FsError::CreateTempDir { source })
}