Interact with an xrootd server to perform filesystem-based operations such as copying files, creating directories, changing file permissions, listing directories, etc.
Parameters: | url (string) – The URL of the server to connect with |
---|
The server URL object, instance of XRootD.client.URL
Copy a file.
Note
This method is less configurable than using XRootD.client.CopyProcess - it is designed to be as simple as possible by using sensible defaults for the underlying copy job. If you need more configurability, or want to make multiple copy jobs run at once in parallel, use XRootD.client.CopyProcess.
Parameters: | |
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and None |
Locate a file.
Parameters: |
|
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and XRootD.client.responses.LocationInfo object |
Locate a file, recursively locate all disk servers.
Parameters: |
|
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and XRootD.client.responses.LocationInfo object |
Move a directory or a file.
Parameters: | |
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and None |
Obtain server information.
Parameters: |
|
---|---|
Returns: | the query response or None if there was an error |
Return type: | string |
Note
For more information about XRootD query codes and arguments, see the relevant section in the protocol reference.
Truncate a file.
Parameters: |
|
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and None |
Remove a file.
Parameters: | path (string) – path to the file to be removed |
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and None |
Create a directory.
Parameters: |
|
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and None |
Remove a directory.
Parameters: | path (string) – path to the directory to remove |
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and None |
Change access mode on a directory or a file.
Parameters: |
|
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and None |
Check if the server is alive.
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and None |
---|
Obtain status information for a path.
Parameters: | path (string) – path to the file/directory to stat |
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and XRootD.client.responses.StatInfo object |
Obtain status information for a Virtual File System.
Parameters: | path (string) – path to the file/directory to stat |
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and XRootD.client.responses.StatInfoVFS object |
Obtain server protocol information.
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and XRootD.client.responses.ProtocolInfo object |
---|
List entries of a directory.
Parameters: |
|
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and XRootD.client.responses.DirectoryList object |
Warning
Currently, passing DirListFlags.STAT with an asynchronous call to XRootD.client.FileSystem.dirlist() does not work, due to an xrootd client limitation. So you’ll get None instead of the StatInfo instance. See the GitHub issue for more details.
Send info to the server (up to 1024 characters).
Parameters: | info (string) – the info string to be sent |
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and None |
Prepare one or more files for access.
Parameters: |
|
---|---|
Returns: | tuple containing XRootD.client.responses.XRootDStatus object and None |