Skip to content

Remove Default Themes #11

Description

@andimal
Dir.foreach("#{new_project_dir}/wp-content/themes") do |item|
  next if item == '.' or item == '..'
  FileUtils.rm_rf "#{new_project_dir}/wp-content/themes/#{item}" if File.directory?(item)
end

This seemed to work at one point, but now all of the theme directories are returning false to File.directory?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions