Is there a way to get a reference to the current folder through the JS COM? It doesn't seem as though it can be done with
SP.ListOperation. And by current folder, I mean the folder the user is currently "looking in", so to speak, not if they have selected a list item and it happens to be a folder.
I'm thinking I will have to check
document.URL to see if there is a RootFolder query parameter, but it would be nice to know if there is a way to get that information directly through the object model.