IEnumerable <string> GetSharePointFolders(SharepointSource sharepointSource, string path)
        {
            var sharepointHelper = sharepointSource.CreateSharepointHelper();
            var folders          = sharepointHelper.LoadFolders(path);

            return(folders);
        }
Example #2
0
        private IEnumerable <string> GetSharePointFiles(SharepointSource sharepointSource, string path)
        {
            var sharepointHelper = sharepointSource.CreateSharepointHelper();
            var files            = sharepointHelper.LoadFiles(path);

            return(files);
        }
Example #3
0
        public IEnumerable <string> MoveFile(SharepointSource sharepointSource, string serverPathFrom, string serverPathTo)
        {
            var sharepointHelper = sharepointSource.CreateSharepointHelper();

            var newPath = sharepointHelper.MoveFile(serverPathFrom, serverPathTo, Overwrite);

            return(new List <string> {
                newPath
            });
        }
Example #4
0
        public IEnumerable <string> UpdloadFile(SharepointSource sharepointSource, string serverPath, string localPath)
        {
            var sharepointHelper = sharepointSource.CreateSharepointHelper();

            var newPath = sharepointHelper.UploadFile(serverPath, localPath);

            return(new List <string> {
                newPath
            });
        }
Example #5
0
        public IEnumerable <string> Delete(SharepointSource sharepointSource, string serverPath)
        {
            var sharepointHelper = sharepointSource.CreateSharepointHelper();

            var result = sharepointHelper.Delete(serverPath);

            return(new List <string> {
                result
            });
        }