Commit ed15482a authored by 张彦钊's avatar 张彦钊

修改测试文件

parent 7d70885d
...@@ -55,9 +55,12 @@ def gen_tfrecords(in_file): ...@@ -55,9 +55,12 @@ def gen_tfrecords(in_file):
def main(_): def main(_):
client = Client("http://nvwa01:50070") client = Client("http://nvwa01:50070")
path = "/recommend/va" path = "/recommend/va"
for root, dir, files in client.walk(path): path, dirs, files = client.walk(path)
for file in files: print(files)
print(file) print(type(files))
# for root, dir, files in client.walk(path):
# for file in files:
# print(file)
if not os.path.exists(FLAGS.output_dir): if not os.path.exists(FLAGS.output_dir):
os.mkdir(FLAGS.output_dir) os.mkdir(FLAGS.output_dir)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment