IncludeSubdirectories Parameter (Connect-CSV Cmdlet)
Whether to read files from nested folders. In the case of a name collision, table names are prefixed by the underscore-separated folder names.
Syntax
Connect-CSV -IncludeSubdirectories SwitchParameter
Data Type
bool
Default Value
false
Remarks
Whether to read files from nested folders. When accessing local CSV, the cmdlet honors Schema.ini defined in subfolders. Table names are prefixed by each nested folder name separated by underscores only in the case of a table name conflict. For example,
Root\subfolder1\tableA | Root\subfolder1\subfolder2\tableA |
subfolder1_tableA | subfolder1_subfolder2_tableA |
Archive files (ZIP, GZ, TAR) are also supported and treated like folders.