Skip to content

Remove Default Themes #11

@andimal

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?

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