filecreate: Create and delete files

Description Usage Arguments Value See Also

Description

Create and delete files on the SharePoint system.

Usage

1
2
3
spfile.create(file, con, directory, site, site_collection, text = "")

spfile.delete(file, directory, site, site_collection)

Arguments

file

a name of a file on sharepoint.

con

a file connection to, or the file name of, the file to upload.

directory

a directory name.

site

a SharePoint site name, e.g. '/ExpertGroups/WGNSSK'.

site_collection

a SharePoint site collection, will almost exclusively be 'https://community.ices.dk', so these functions should work for other SharePoint sites outside ICES.

text

if 'con' is not supplied, the 'text' is assummed to be the contents of the file, defaulting to "".

Value

invisibly returns the response from the SharePoint server

See Also

spcheckout To upload a file.


ices-tools-prod/icesSharePoint documentation built on June 27, 2021, 5:16 p.m.