ParseFullFilePath: Parse Full File Path

View source: R/Stringendo.R

ParseFullFilePathR Documentation

Parse Full File Path

Description

Constructs a full file path by combining a path, file name, and extension. It applies string clean-up operations to each component and ensures proper formatting.

Usage

ParseFullFilePath(path, file_name, extension)

Arguments

path

The directory path. If not provided, only file name and extension are used. Default: NULL.

file_name

The name of the file. Clean-up operations are applied to remove special characters and repeated dots. Default: Empty string.

extension

The file extension. If provided, it is appended to the file name with a preceding dot. Clean-up operations remove any initial dots. Default: NULL.

Value

A string representing the full file path.

Examples

ParseFullFilePath(path = "home/user/docs/", file_name = "report@final", extension = ".txt")
ParseFullFilePath(file_name = "report", extension = "txt")

vertesy/Stringendo documentation built on Nov. 10, 2024, 4:35 a.m.