Module smbc :: Class Context
[hide private]
[frames] | no frames]

Class Context

object --+
         |
        Context

SMBC context

A context for libsmbclient calls.

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
int
mkdir(uri, mode)
Returns: 0 on success, < 0 on error
File
open(uri)
Returns: a smbc.File object for the URI
Dir
opendir(uri)
Returns: a smbc.Dir object for the URI
int
rmdir(uri)
Returns: 0 on success, < 0 on error
tuple
stat(uri)
Returns: stat information

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  debug
Debug level.
  functionAuthData
Function for obtaining authentication data.
  netbiosName
Netbios name used for making connections.
  optionDebugToStderr
Whether to log to standard error instead of standard output.
  optionNoAutoAnonymousLogin
Whether to automatically select anonymous login.
  workgroup
Workgroup used for making connections.

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

mkdir(uri, mode)

 
Parameters:
  • uri (string) - URI to mkdir
  • mode - Specifies the permissions to use.
Returns: int
0 on success, < 0 on error

open(uri)

 
Parameters:
  • uri (string) - URI to open
Returns: File
a smbc.File object for the URI

opendir(uri)

 
Parameters:
  • uri (string) - URI to open
Returns: Dir
a smbc.Dir object for the URI

rmdir(uri)

 
Parameters:
  • uri (string) - URI to rmdir
Returns: int
0 on success, < 0 on error

stat(uri)

 
Parameters:
  • uri (string) - URI to get stat information
Returns: tuple
stat information