Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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);
        }
Ejemplo n.º 5
0
        /// <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);
        }
Ejemplo n.º 6
0
        /// <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);
        }