Linux c implements traversing the folders and files under the specified path