Consider I have a table with a lot of paths like:
- \test
- \test\file.txt
- \test\file2.txt
- \file3.txt
- \test\subfolder\anotherfolder\test.txt
How would perform a SELECT query that accurately represents the folder and file structure?
- test (folder)
- file3.txt (file)
and then querying on the "test" folder should give
- subfolder (folder)
- file.txt (file)
- file2.txt (file)
Every item in the table knows if it is a directory or a file.
\folder\subfolder\a,\folder\subfolder\b, and one is a file and the other is a folder, how would you know which one is which?Every item in the table knows if it is a directory or a file.Don't know what you mean, though. Are you talking about someIsDirectorycolumn?