{"id":"af990c7e969e9101","repo":"sharkdp/fd","slug":"fd-list-details-is-not-supported-on-this-platf","errorCode":null,"errorMessage":"'fd --list-details' is not supported on this platform.","messagePattern":"'fd --list-details' is not supported on this platform\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/main.rs","lineNumber":489,"sourceCode":"        use std::process::{Command, Stdio};\n\n        // Use GNU ls, if available\n        let gnu_ls_exists = Command::new(\"ls\")\n            .arg(\"--version\")\n            .stdout(Stdio::null())\n            .stderr(Stdio::null())\n            .status()\n            .is_ok();\n\n        if gnu_ls_exists {\n            gnu_ls(\"ls\")\n        } else {\n            return Err(anyhow!(\n                \"'fd --list-details' is not supported on Windows unless GNU 'ls' is installed.\"\n            ));\n        }\n    } else {\n        return Err(anyhow!(\n            \"'fd --list-details' is not supported on this platform.\"\n        ));\n    };\n    Ok(cmd)\n}\n\nfn extract_time_constraints(opts: &Opts) -> Result<Vec<TimeFilter>> {\n    let mut time_constraints: Vec<TimeFilter> = Vec::new();\n    if let Some(ref t) = opts.changed_within {\n        if let Some(f) = TimeFilter::after(t) {\n            time_constraints.push(f);\n        } else {\n            return Err(anyhow!(\n                \"'{}' is not a valid date or duration. See 'fd --help'.\",\n                t\n            ));\n        }\n    }","sourceCodeStart":471,"sourceCodeEnd":507,"githubUrl":"https://github.com/sharkdp/fd/blob/41532d114e2ba565fb5367d606c111b29b96450c/src/main.rs#L471-L507","documentation":"Thrown in src/main.rs:489 by the list-details builder for any target that is neither cfg(unix) nor cfg(windows) — for example wasm32, redox, or a custom target. fd has no ls invocation path for such platforms, so --list-details is hard-unsupported.","triggerScenarios":"Running a fd build target whose cfg is neither unix nor windows and invoking 'fd --list-details'.","commonSituations":"Cross-compiling/running fd under wasm or an exotic RTOS; a tier-3 target where the unix/windows cfg branches are both off.","solutions":["Do not use --list-details on this target; use plain 'fd' output and post-process with whatever stat-like tool the platform offers.","Rebuild fd for a supported target (unix or windows) if you need this option.","File a feature request to add a platform-specific ls wrapper for the target."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"# only attempt --list-details on unix/windows\nif [ \"$(uname -s)\" = Linux ] || [ \"$(uname -s)\" = Darwin ] || echo \"$OS\" | grep -qiE 'win'; then\n  fd --list-details \"$@\"\nelse\n  echo \"--list-details unsupported here\" >&2; fd \"$@\"\nfi","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Don't ship --list-details in generic cross-platform wrappers; gate it by platform.","Provide a fallback (plain fd output + external stat) for unsupported targets.","Document platform limits wherever --list-details is offered."],"tags":["list-details","platform","unsupported","cfg"],"analyzedSha":"41532d114e2ba565fb5367d606c111b29b96450c","analyzedAt":"2026-08-06T01:39:28.509Z","schemaVersion":2}