I'm creating folders and subfolders in my sharepoint site, and then upload documents into these subfolders. This is currently done programmatically, and I'm able to see the content and navigate in Sharepoint as I would in a regular file system.
But there are columns that apply to a Folders view, and other columns that apply to a Documents view. I added a hidden column called "Level" that will help determine whether we're viewing FOLDERS or DOCUMENTS.
Can the value of this field control what view is applied?