From 91d5a04d714bae2e120e3d5372aebbc6991ee9ff Mon Sep 17 00:00:00 2001 From: sean-eagles <112004392+sean-eagles@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:41:56 -0500 Subject: [PATCH] Update README.md Updated readme to include # List all Shapefiles in directory and all subdirectories within. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c703260..c6b77df 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,11 @@ representing the bounding boxes of the layers with better representation than 4 1) Clean all rows that will not be used in this process and are extraneous 2) Output as excel file or DBF, DBF prefered for interoperability 3) Clean table to by exported to DynamoDB for next steps + +# List all Shapefiles in directory and all subdirectories within +1) Set current working directory +2) Create a list for file names to be appended to +3) use os.walk to step through directories using topdown approach. +4) while stepping through directories get files to list all files that end with .shp (shapefiles) +5) append to list all shapefiles including path (so path + // + shp name) +6) Print the list