@frappe.whitelist()
def create_new_folder(file_name, folder):
 file = frappe.new_doc(u'File')
 file.file_name = file_name
 file.is_folder = 1
 file.folder = folder
 file.insert()

@ frappe . whitelist ( ) def create_new_folder ( file_name , folder ) : file = frappe . new_doc ( u'File' ) file . file_name = file_name file . is_folder = 1 file . folder = folder file . insert ( )
create new folder under current parent folder .