Bloom.Book.BookStorage.GetNameForATempFileInStorageFolder C# (CSharp) 메소드

GetNameForATempFileInStorageFolder() 개인적인 메소드

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
리턴 string
        private string GetNameForATempFileInStorageFolder()
        {
            using (var temp = TempFile.InFolderOf(PathToExistingHtml))
            {
                return temp.Path;
            }
        }