dittodb (version 0.1.8)

db_path_sanitize: Switch illegal characters for legal ones

Description

Inspired by the fs package's path_sanitize function

Usage

db_path_sanitize(filename, replacement = "_")

Value

the sanitized string

Arguments

filename

the file or folder to sanitize

replacement

what should the illegal character(s) be replaced with? (default: "_")

Examples

Run this code
db_path_sanitize('this:string"has?issues')

Run the code above in your browser using DataLab