python - 如何使用 if 语句移动包含使用 exiftool 找到的某些 XMP 数据的文件
问题描述
我使用 Exiftool 找到了包含某些 XMP 数据的文件。如果参数符合参数,我如何移动这些文件。
这是我的代码
import os
import subprocess
import sys
filesPath = '/folderpath'
for root, dirs, files in os.walk(filesPath):
for name in files:
print("echo", os.path.join(root, name))
subprocess.call(['exiftool', '-Route','-Final_image_in_location', os.path.join(root, name)])
if Route = 4 and Final_image_in_location = 1:
print ("i got one")
目前 if 语句不起作用
解决方案
推荐阅读
- google-app-maker - APP MAKER 不适用于我组织的所有用户
- dart - 小部件树内的条件导航
- version-control - 来自 Windows ClearCase 客户端的结帐问题
- javascript - 在javascript中返回Nan值?
- windows - 通过 CMD 执行 powershell 字符串
- sqlite - SQLiteNetExtensions 多个相同类型的多对一关系
- docker - 使用覆盖网络部署 Docker 堆栈 - 行为不一致
- r - R中按组在数据表上的日期范围内滚动总和
- javascript - 根据值对javascript中的对象键进行排序
- smartcontracts - 验证过程如何在 RIDE 上进行?将脚本附加到帐户后会发生什么?