Project edit
This commit is contained in:
@@ -30,3 +30,7 @@ def check_safe_path(filename)
|
||||
home_dir = Dir.home
|
||||
filename.start_with?("/etc/mock") || filename.start_with?(current_dir) || filename.start_with?(home_dir)
|
||||
end
|
||||
|
||||
def get_spec_files_in_dir(directory)
|
||||
Dir.glob(File.join(directory, "**", "*")).reject { |f| File.directory?(f) }.select { |f| File.extname(f) == ".spec" }.map { |f| f.delete_prefix(directory + "/") }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user