コード例 #1
0
        static string Prepare(StorageManager storageManager, string subDirectory, string fileName)
        {
            if (!string.IsNullOrWhiteSpace(subDirectory))
            {
                if (!storageManager.DirectoryExists(subDirectory))
                {
                    storageManager.CreateDirectory(subDirectory);
                }

                fileName = Path.Combine(subDirectory, fileName);
            }

            return(fileName);
        }