private void ValidateSourcePath()

in src/Program.cs [776:792]


        private void ValidateSourcePath()
        {
            if (Utilities.IsFileSystemPath(m_args.SourcePath))
            {
                if (!string.IsNullOrWhiteSpace(m_args.Prefix))
                {
                    throw new UtilsArgumentException(
                        $"Command line arguments error. 'prefix' argument is only supported for Azure Blob inputs", null);
                }
            }
            else if (!Utilities.IsBlobStorageUri(m_args.SourcePath, out var error))
            {
                throw new UtilsArgumentException(
                    $"Command line arguments error. 'sourcePath' argument '{m_args.SourcePath}' does not indicate a valid file system path or blob URI." +
                    (string.IsNullOrWhiteSpace(error) ? string.Empty : $" Error: '{error}'"), null);
            }
        }