Bloom.Book.BookStorage.GetNameForATempFileInStorageFolder C# (CSharp) Method

GetNameForATempFileInStorageFolder() private method

Get a temporary file pathname in the current book's folder. This is needed to ensure proper permissions are granted to the resulting file later after FileUtils.ReplaceFileWithUserInteractionIfNeeded is called. That method may call File.Replace which replaces both the file content and the file metadata (permissions). The result of that if we use the user's temp directory is described in http://issues.bloomlibrary.org/youtrack/issue/BL-3954.
private GetNameForATempFileInStorageFolder ( ) : string
return string
        private string GetNameForATempFileInStorageFolder()
        {
            using (var temp = TempFile.InFolderOf(PathToExistingHtml))
            {
                return temp.Path;
            }
        }