Skip to content

Ngarc

Classes

DataPoint

DataPoint(u, uc)

Wrapper around arc.datapoint_from_url() which does not clean up DataPoints when python objects are destroyed, leading to connection leaking when used with gridftp. This class should be used instead of arc.datapoint_from_url(). It can be called like dp = DataPoint('gsiftp://...', uc); dp.h.Stat() where uc is an arc.UserConfig object.

Default

Default(protocol_attr, rse_settings, logger=None)

Implementing access to RSEs using ARC client.

Set up UserConfig object.

Functions

path2pfn
path2pfn(path)

Returns a fully qualified PFN for the file referred by path.

PARAMETER DESCRIPTION
path

The path to the file.

RETURNS DESCRIPTION

Fully qualified PFN.

exists
exists(pfn)

Checks if the requested file is known by the referred RSE.

PARAMETER DESCRIPTION
pfn

Physical file name

RETURNS DESCRIPTION

True if the file exists, False if it doesn't

connect
connect()

Establishes the actual connection to the referred RSE.

close
close()

Closes the connection to RSE.

get
get(pfn, dest, transfer_timeout=None)

Provides access to files stored inside connected the RSE.

PARAMETER DESCRIPTION
pfn

Physical file name of requested file

dest

Name and path of the files when stored at the client

put
put(source, target, source_dir=None, transfer_timeout=None)

Allows to store files inside the referred RSE.

PARAMETER DESCRIPTION
source

Physical file name

target

Name of the file on the storage system e.g. with prefixed scope

delete
delete(pfn)

Deletes a file from the connected RSE.

PARAMETER DESCRIPTION
pfn

Physical file name

rename
rename(pfn, new_pfn)

Allows to rename a file stored inside the connected RSE.

PARAMETER DESCRIPTION
pfn

Current physical file name