I can list the files from a folder from the command line using the ls() command. However if the path is used as input to the list.files command in R Studio. The respond is character(0).
Referred here by Forecasting: Principles and Practice, by Rob J Hyndman and George Athanasopoulos