Exemple #1
0
        /// <summary>
        /// Deletes the file
        /// </summary>
        /// <param name="fileDate"></param>
        /// <param name="container"></param>
        /// <param name="fileName"></param>
        /// <returns></returns>
        public Task <RepositoryResult> DeleteFileAsync(DateTime fileDate, string container, string fileName)
        {
            var timeStampedRelativePath = TimeStampedFilePathBuilder.GetTimeStampedFilePath(fileDate, fileName);
            var fileSavePath            = Path.Combine(_rootFolder, container, timeStampedRelativePath);

            return(DeleteFileAsync(fileSavePath));
        }
Exemple #2
0
        /// <summary>
        /// Checks if the file exists
        /// </summary>
        /// <param name="fileDate"></param>
        /// <param name="container"></param>
        /// <param name="fileName"></param>
        /// <returns></returns>
        public Task <RepositoryResult <bool> > CheckIfFileExistsAsync(DateTime fileDate, string container, string fileName)
        {
            var timeStampedRelativePath = TimeStampedFilePathBuilder.GetTimeStampedFilePath(fileDate, fileName);

            return(InternalCheckIfFileExistsAsync(null, container, fileName));
        }