span8
span4
我想要将一个ESRI文件地理数据库(FGDB)从一个文件夹移动到另一个文件夹。我已经让文件抄写器移动到…这里\data.gdb\*。* . . \ \ data.gdb \ *。* but this leaves the now empty ..\here\data.gdb folder in the original location.我怀疑这是因为FGDBs实际上是文件夹,这对于非esri的东西来说是令人困惑的(对于写FileCopy的人来说,它只是另一个文件夹)。
我知道我可能可以用Python来解决这个问题,或者涉及到工作空间运行器和FileCopy到nul来删除移动内容后的文件夹。但是我想知道是否有人知道在FileCopy写入器中作为移动操作的一部分这样做的方法。
在你建议做…之前。gdb,约束是。\here\ may contain more than one FGDB, but I only want to move one at a time.这是因为我依次处理每个FGDB,然后将其移动到“已处理”文件夹。
我还想到了一个想法,将FGDB名称(这些名称是动态的)写入文本文件,然后在最后有一个干净的工作区,使用它来实现“move *”。gdb”解决方案。
嗨@conan_drumme,我猜您的问题的原因是您已经配置了文件拷贝器来移动各个文件。尝试移动gdb文件夹。如果将“复制源文件夹”参数设置为“是”,则写入器将移动指定的gdb文件夹和该文件夹下的所有文件。
嗨@conan_drumme,我无法重现您的问题,并设法完全移动了一个fgdb
通过使用*。gdb path filter, but since this is not an option for you I suggest re thinking your process and possibly integrating the fgdb processing into your main workspace, so that once each fgdb is processed it is directly moved to the "processed" folder.
©2019安全亚搏在线软件公司法律