Thanks to visit codestin.com
Credit goes to diskframe.com

Get the partitioning structure of a folder

get_partition_paths(df)

Arguments

df

a disk.frame whose paths will be used to determine if it's folder-partitioned disk.frame