Moved folder-related code to src/bindings_folders.cc