Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 OSQuery 中的查询选择文件夹及其子文件夹中的文件: SELECT path FROM file WHERE directory LIKE '/Users/%';
SELECT path FROM file WHERE directory LIKE '/Users/%';
那根本不返回任何结果。什么不见了?
你可以用
SELECT path FROM file WHERE path LIKE '/Users/%%';
但请注意,这将遍历下面的整个文件系统/Users,因此需要一段时间才能运行并返回大量结果。
/Users