File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -141,4 +141,12 @@ def test_download_dir(remote, tmpdir):
141
141
to_info = os .PathInfo (path )
142
142
remote .download (remote .path_info / "data" , to_info )
143
143
assert os .path .isdir (path )
144
- # check the list of files
144
+ data_dir = tmpdir / "data"
145
+ assert len (list (walk_files (path , None ))) == 7
146
+ assert (data_dir / "alice" ).read_text (encoding = "utf-8" ) == "alice"
147
+ assert (data_dir / "alpha" ).read_text (encoding = "utf-8" ) == "alpha"
148
+ assert (data_dir / "subdir-file.txt" ).read_text (encoding = "utf-8" ) == "subdir"
149
+ assert (data_dir / "subdir" / "1" ).read_text (encoding = "utf-8" ) == "1"
150
+ assert (data_dir / "subdir" / "2" ).read_text (encoding = "utf-8" ) == "2"
151
+ assert (data_dir / "subdir" / "3" ).read_text (encoding = "utf-8" ) == "3"
152
+ assert (data_dir / "subdir" / "empty_file" ).read_text (encoding = "utf-8" ) == ""
You can’t perform that action at this time.
0 commit comments