/// <summary> /// Write a file to project directory /// </summary> /// <param name="text">text to write to a file in the project directory</param> /// <param name="options">DirectoryUploadOptions object specifying behavior of the transfer</param> /// <returns>RProjectFile object created</returns> /// <remarks></remarks> public RProjectFile writeFile(String text, DirectoryUploadOptions options) { RProjectFile returnValue = RProjectDirectoryImpl.writeFile(m_projectDetails, text, options, m_client, Constants.RPROJECTDIRECTORYWRITE); return(returnValue); }
/// <summary> /// Upload a file to project directory /// </summary> /// <param name="file">complete path to the file to upload</param> /// <param name="options">DirectoryUploadOptions object specifying behavior of the transfer</param> /// <returns>RProjectFile object created</returns> /// <remarks></remarks> public RProjectFile uploadFile(String file, DirectoryUploadOptions options) { RProjectFile returnValue = RProjectDirectoryImpl.uploadFile(m_projectDetails, file, options, m_client, Constants.RPROJECTDIRECTORYUPLOAD); return(returnValue); }
/// <summary> /// Transfer file to project directory /// </summary> /// <param name="url">url of file to transfer</param> /// <param name="options">DirectoryUploadOptions object specifying behavior of the transfer</param> /// <returns>RProjectFile object created</returns> /// <remarks></remarks> public RProjectFile transferFile(String url, DirectoryUploadOptions options) { RProjectFile returnValue = RProjectDirectoryImpl.transferFile(m_projectDetails, url, options, m_client, Constants.RPROJECTDIRECTORYTRANSFER); return(returnValue); }
/// <summary> /// Load file from user repository into project directory /// </summary> /// <param name="file">RRepositoryFile object to load</param> /// <returns>RProjectFile object created</returns> /// <remarks></remarks> public RProjectFile loadFile(RRepositoryFile file) { RProjectFile returnValue = RProjectDirectoryImpl.loadFile(m_projectDetails, file, m_client, Constants.RPROJECTDIRECTORYLOAD); return(returnValue); }
/// <summary> /// List files in the project directory /// </summary> /// <returns>List of corresponding RProjectFile objects</returns> /// <remarks></remarks> public List <RProjectFile> listFiles() { List <RProjectFile> returnValue = RProjectDirectoryImpl.listFiles(m_projectDetails, m_client, Constants.RPROJECTDIRECTORYLIST); return(returnValue); }
/// <summary> /// Download specified files from project directory /// </summary> /// <param name="files">List of file names to download</param> /// <returns>URL corresponding to zip file containing file specified</returns> /// <remarks></remarks> public String downloadFiles(List <String> files) { String returnValue = System.Convert.ToString(RProjectDirectoryImpl.downloadFiles(m_projectDetails, files, m_client, Constants.RPROJECTDIRECTORYDOWNLOAD)); return(returnValue); }