convert_folder: Converts files in folder to CSS files

Description Usage Arguments Value Examples

View source: R/convert_folder.R

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

1
2
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

1
2
3
4
5
6
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$')

rless documentation built on Aug. 1, 2019, 1:04 a.m.