s.s.SMB : class documentation

Part of samba.smb View In Hierarchy

SMB(hostname, service[, lp[, creds]]) -> SMB connection object
Method savefile savefile(path, str) -> None
Method __new__ T.__new__(S, ...) -> a new object with type S, a subtype of T
Method mkdir mkdir(path) -> None
Method get_acl get_acl(path) -> security_descriptor object
Method list list(path) -> directory contents as a dictionary
Method set_acl set_acl(path, security_descriptor) -> None
Method chkpath chkpath(path) -> True or False
Method rmdir rmdir(path) -> None
Method loadfile loadfile(path) -> file contents as a string
def savefile():
savefile(path, str) -> None

Write string str to file.

def __new__():
T.__new__(S, ...) -> a new object with type S, a subtype of T
def mkdir():
mkdir(path) -> None

Create a directory.

def get_acl():
get_acl(path) -> security_descriptor object

Get security descriptor for file.

def list():

list(path) -> directory contents as a dictionary

List contents of a directory. The keys are,
name: Long name of the directory item short_name: Short name of the directory item size: File size in bytes attrib: Attributes mtime: Modification time
def set_acl():
set_acl(path, security_descriptor) -> None

Set security descriptor for file.

def chkpath():
chkpath(path) -> True or False

Return true if path exists, false otherwise.

def rmdir():
rmdir(path) -> None

Delete a directory.

def loadfile():
loadfile(path) -> file contents as a string

Read contents of a file.

API Documentation for Samba, generated by pydoctor at 2012-03-06 23:17:58.