register_data: Build unique file identifier

View source: R/register_data.R

register_dataR Documentation

Build unique file identifier

Description

Build unique file identifier

Usage

register_data(input, output, overwrite = FALSE)

Arguments

input

Path to the file to be added to the database.

output

Name of the output file, following the output of build_id.

overwrite

Logical. Should the function overwrite existing files?

Details

This function helps users add new data file to a database as created with masDMT. Note that the function will work with chmod to modify file permissions. By default, the function will apply a 'read-only' restriction (code 444), preventing potentially wrongful overwrites or deletions. When overwrite is set to TRUE, the function will change the restrictions of a file to 'read-write', allowing users its modification. If this function is run in windows system, the file will also receive a system-specific icacls.

Value

Writes file into standardized file structure.

See Also

build_id lockpick


macroecology-society/masDMT documentation built on July 2, 2024, 4:08 a.m.