Пример #1
0
        protected bool MoveDirectory(string sourcePath, string targetPath, bool bCreateFolder = false)
        {
            if (m_Profile.IsDetaledLog)
            {
                m_Logger.Writeln($"Move Directory {sourcePath} To {targetPath}");
            }
            else
            {
                m_Logger.Writeln($"Move Directory {sourcePath}");
            }

            var parentDir = m_IStorage.GetDirectoryName(targetPath);

            if (!m_IStorage.DirectoryExists(parentDir))
            {
                CreateDirectory(parentDir);
            }

            return(m_IStorage.MoveDirectory(sourcePath, targetPath, bCreateFolder));
        }