
Create table with information of all the files in specified folders
folder_details.Rd
This function takes a vector of folder paths, retrieves details about files in those folders. Then writes the information to an Excel file. The details include file names, last update timestamps, file sizes proportional sizes to the folder where it is stored, and add a column for potential deletion.
Arguments
- folders
A vector of folder paths.
- file_path
The path where the Excel file will be saved.
- units
The desired units for file sizes
'bytes'
(the default),'kb'
,'mb'
, or'gb'
.- verbose
A boolean. If
TRUE
(the default), displays a message confirming successful completion of the process.
Details
Simplifies folder cleaning by generating an Excel file containing
details about each file. After creation, the user is required to modify or
delete zeros in the delete
column for files to be deleted. Finally, call
delete_files_from_excel()
.
Examples
if (FALSE) {
folder_details(c("/path/to/folder1", "/path/to/folder2"),
file_path = "details.xlsx", units = 'kb')
}