Sanitizes directory paths for file export operations. This function ensures that export paths are valid, accessible, and secure before files are written. It handles path normalization and security checks for export operations.
clean_export_path(dir_path, create = FALSE)Cleaned and validated directory path
Character string containing the directory path to clean
Logical indicating whether to create the directory if it doesn't exist