ooodev.adapter.ucb.simple_file_access3_partial module

class ooodev.adapter.ucb.simple_file_access3_partial.SimpleFileAccess3Partial(component, interface=com.sun.star.ucb.XSimpleFileAccess3)[source]

Bases: SimpleFileAccess2Partial

Partial Class XSimpleFileAccess3.

Parameters:
  • component (XSimpleFileAccess3) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.ucb.XSimpleFileAccess3)[source]

Constructor

Parameters:
  • component (XSimpleFileAccess3) – UNO Component that implements com.sun.star.ucb.XSimpleFileAccess3 interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XSimpleFileAccess3.

Return type:

None

is_hidden(file_url)[source]

Checks if a file is hidden.

Raises:
  • com.sun.star.ucb.CommandAbortedExceptionCommandAbortedException

  • com.sun.star.uno.ExceptionException

Return type:

bool

Parameters:

file_url (str) –

set_hidden(file_url, hidden)[source]

Sets the hidden of a file according to the boolean parameter, if the actual process has the right to do so and the used operation system supports this operation.

Raises:
  • com.sun.star.ucb.CommandAbortedExceptionCommandAbortedException

  • com.sun.star.uno.ExceptionException

Return type:

None

Parameters:
  • file_url (str) –

  • hidden (bool) –