file_find_by_type: Find By File Type in Directory

View source: R/file_find_by_type.R

file_find_by_typeR Documentation

Find By File Type in Directory

Description

Find By File Type in Directory

Usage

file_find_by_type(
  directory,
  type = "shp",
  first_only = FALSE,
  full_path = FALSE
)

Arguments

type

Type of file file extension without a period, e.g. "zip", "shp".

first_only

Only return first found. default FALSE.

full_path

Return file name with full path. defualt FASLE.

Examples

file_find_by_type(tmpdir, "shp", first_only = TRUE)
[1] "some_shape_file.shp"

uva-bi-sdad/dc.utils documentation built on Aug. 1, 2022, 1:45 a.m.