#NEWLINE# def get_shared_folder( path ) : #NEWLINE# #INDENT# dirs = path . split ( '/' ) #NEWLINE# if ( ( dirs [ 0 ] [ 0 ] == 'U' ) or ( dirs [ 0 ] [ 0 ] == 'C' ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# folder = ZornaFolder . objects . get ( pk = int ( dirs [ 0 ] [ 1 : ] ) ) #NEWLINE# return dirs #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return None