rless (version 0.1.0)

convert_folder: Converts files in folder to CSS files

Description

Function goes through folder specified in input_folder and finds files matching the pattern. If recursive is set to TRUE, scanner are also subdirectories of the input_folder. Matching files are converted using convert_file function.

Usage

convert_folder(input_folder, output_folder = tempdir(),
  recursive = FALSE, pattern = "*.less$")

Arguments

input_folder

Path to files to be converted

output_folder

Output path where converted files should be placed Files are placed to tempdir by default

recursive

Boolean value used when searching for filed to be converted

pattern

Pattern which files need to match to be converted

Value

List of file paths to converted files is returned

Examples

Run this code
# NOT RUN {
path_to_less_files <- system.file("extdata", package="rless")

convert_folder(path_to_less_files)
convert_folder(path_to_less_files, tempdir())
convert_folder(path_to_less_files, recursive = TRUE)
convert_folder(path_to_less_files, pattern = '*.css$')

# }

Run the code above in your browser using DataCamp Workspace