powered by
Get the first and last modification time of files of a directory
get_last_modif(repo = ".", path = "R", recursive = TRUE, untracked = TRUE)
git repository
Default to R folder. Use "" for the complete directory
Logical. Should the listing recurse into directories?
Logical. Should the not tracked files be included?
A list of files with information of each file:
file: file name
in_repository: Logical. Whether the file has already been commit once in the git repository
first_modif: time of first modification. Commit time if in the git repository, system date of creation otherwise.
last_modif: time of last modification. Commit time if in the git repository, system date of last modification otherwise.
# NOT RUN { repo <- fake_repo() # Complete repository get_last_modif(repo = repo, path = "") repo <- fake_repo(as.package = TRUE) # Complete repository get_last_modif(repo = repo, path = "") # }
Run the code above in your browser using DataLab