original_docstring:  Perform file truncate if platform is win32 otherwise use remote variant using SSH link.
          
docstring: Perform file truncate if platform is win32 otherwise use remote variant using SSH link.
docstring_tokens: Perform file truncate if platform is win32 otherwise use remote variant using SSH link .
code: def os_truncate(self, pathName, fileSize=0):
          """ Perform file truncate if platform is win32 otherwise use remote variant using SSH link.
          """
          if (sys.platform == 'win32'):
              return self.ssh_exec_cmd(self.const_truncate_symbol, pathName, fileSize)
          else:
              if (os.path.exists(pathName)):
                  fHand = open(pathName, 'rb')
                  fHand.truncate(fileSize)
                  fHand.flush()
                  fHand.close()
code_tokens: def os_truncate ( self , pathName , fileSize = 0 ) : if ( sys . platform == 'win32' ) : return self . ssh_exec_cmd ( self . const_truncate_symbol , pathName , fileSize ) else : if ( os . path . exists ( pathName ) ) : fHand = open ( pathName , 'rb' ) fHand . truncate ( fileSize ) fHand . flush ( ) fHand . close ( )
short_docstring: Perform file truncate if platform is win32 otherwise use remote variant using SSH link.
short_docstring_tokens: Perform file truncate if platform is win32 otherwise use remote variant using SSH link .
comment: """ Perform file truncate if platform is win32 otherwise use remote variant using SSH link.
          """