Summary
Audit for deprecated File.exists? / Dir.exists? usage (Ruby 3.x compatibility). These are deprecated in favor of exist?.
Approach
Run detection:
cd /Users/Shared/openclaw/projects/workarea-modernization/repos/workarea
rg -n "\\b(File|Dir)\\.exists\\?\\b" core admin storefront | head -n 200
Objective
- Confirm Workarea does not call deprecated
*.exists? methods.
- If present, replace with
exist?.
Client Impact
None expected (behavior should remain equivalent).
Acceptance Criteria
Verification Plan
- Run targeted tests.
- Re-run detection and confirm no remaining matches.
Summary
Audit for deprecated
File.exists?/Dir.exists?usage (Ruby 3.x compatibility). These are deprecated in favor ofexist?.Approach
Run detection:
Objective
*.exists?methods.exist?.Client Impact
None expected (behavior should remain equivalent).
Acceptance Criteria
File.exists?/Dir.exists?call sites auditedexist?Verification Plan