文件操作 - ecos_clean.cmake
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/cmake3/Modules/ecos_clean.cmake
编辑文件内容
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. file(GLOB _files ${ECOS_DIR}/*) # remove all directories, which consist of lower-case letters only # this skips e.g. CVS/ and .subversion/ foreach(_entry ${_files}) if(IS_DIRECTORY ${_entry}) get_filename_component(dir ${_entry} NAME) if(${dir} MATCHES "^[a-z]+$") file(REMOVE_RECURSE ${_entry}) endif() endif() endforeach()
修改文件时间
将文件时间修改为当前时间的前一年
删除文件