$72 GRAYBYTE WORDPRESS FILE MANAGER $97

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby30/share/gems/gems/rake-13.0.3/lib/rake/

HOME
Current File : /opt/alt/ruby30/share/gems/gems/rake-13.0.3/lib/rake//clean.rb
# frozen_string_literal: true
# The 'rake/clean' file defines two file lists (CLEAN and CLOBBER) and
# two rake tasks (:clean and :clobber).
#
# [:clean] Clean up the project by deleting scratch files and backup
#          files.  Add files to the CLEAN file list to have the :clean
#          target handle them.
#
# [:clobber] Clobber all generated and non-source files in a project.
#            The task depends on :clean, so all the clean files will
#            be deleted as well as files in the CLOBBER file list.
#            The intent of this task is to return a project to its
#            pristine, just unpacked state.

require "rake"

# :stopdoc:

module Rake
  module Cleaner
    extend FileUtils

    module_function

    def cleanup_files(file_names)
      file_names.each do |file_name|
        cleanup(file_name)
      end
    end

    def cleanup(file_name, **opts)
      begin
        opts = { verbose: Rake.application.options.trace }.merge(opts)
        rm_r file_name, **opts
      rescue StandardError => ex
        puts "Failed to remove #{file_name}: #{ex}" unless file_already_gone?(file_name)
      end
    end

    def file_already_gone?(file_name)
      return false if File.exist?(file_name)

      path = file_name
      prev = nil

      while path = File.dirname(path)
        return false if cant_be_deleted?(path)
        break if [prev, "."].include?(path)
        prev = path
      end
      true
    end
    private_class_method :file_already_gone?

    def cant_be_deleted?(path_name)
      File.exist?(path_name) &&
        (!File.readable?(path_name) || !File.executable?(path_name))
    end
    private_class_method :cant_be_deleted?
  end
end

CLEAN = ::Rake::FileList["**/*~", "**/*.bak", "**/core"]
CLEAN.clear_exclude.exclude { |fn|
  fn.pathmap("%f").downcase == "core" && File.directory?(fn)
}

desc "Remove any temporary products."
task :clean do
  Rake::Cleaner.cleanup_files(CLEAN)
end

CLOBBER = ::Rake::FileList.new

desc "Remove any generated files."
task clobber: [:clean] do
  Rake::Cleaner.cleanup_files(CLOBBER)
end


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 12.00 AM
root / root
0
ext
--
17 Jul 2024 8.47 AM
root / linksafe
0755
loaders
--
17 Jul 2024 8.47 AM
root / linksafe
0755
application.rb
24.526 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
backtrace.rb
0.875 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
clean.rb
2.028 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
cloneable.rb
0.438 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
cpu_counter.rb
2.325 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
default_loader.rb
0.259 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
dsl_definition.rb
5.481 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
early_time.rb
0.361 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
file_creation_task.rb
0.683 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
file_list.rb
12.453 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
file_task.rb
1.499 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
file_utils.rb
3.821 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
file_utils_ext.rb
3.838 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
invocation_chain.rb
1.186 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
invocation_exception_mixin.rb
0.45 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
late_time.rb
0.288 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
linked_list.rb
2.77 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
multi_task.rb
0.337 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
name_space.rb
0.686 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
packagetask.rb
6.017 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
phony.rb
0.372 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
private_reader.rb
0.385 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
promise.rb
2.28 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
pseudo_status.rb
0.396 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
rake_module.rb
1.492 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
rake_test_loader.rb
0.493 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
rule_recursion_overflow_error.rb
0.373 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
scope.rb
0.877 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
task.rb
12.741 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
task_argument_error.rb
0.146 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
task_arguments.rb
2.41 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
task_manager.rb
10.012 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
tasklib.rb
0.161 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
testtask.rb
5.19 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
thread_history_display.rb
1.129 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
thread_pool.rb
4.671 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
trace_output.rb
0.562 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
version.rb
0.203 KB
26 Jun 2024 1.55 PM
root / linksafe
0644
win32.rb
1.516 KB
26 Jun 2024 1.55 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF