Lines Matching refs:write_file

73 def write_file(path, content, binary=False):
193 write_file(os.path.join(victim, 'somefile'), 'foo')
226 write_file(file1, 'foo')
268 write_file(file1, 'foo')
290 write_file((tmpdir, "tstfile"), "")
383 write_file((TESTFN, 'foo'), 'foo')
421 write_file(os.path.join(fullname, 'subdir', 'somefile'), 'foo')
476 write_file((src_dir, 'test.txt'), '123')
478 write_file((src_dir, 'test_dir', 'test.txt'), '456')
496 write_file((src_dir, 'nonexisting.txt'), '123')
499 write_file((dst_dir, 'existing_dir', 'existing.txt'), 'will be replaced')
500 write_file((src_dir, 'existing_dir', 'existing.txt'), 'has been replaced')
523 write_file((src_dir, 'file.txt'), 'foo')
554 write_file((src_dir, 'test.txt'), '123')
555 write_file((src_dir, 'test.tmp'), '123')
557 write_file((src_dir, 'test_dir', 'test.txt'), '456')
559 write_file((src_dir, 'test_dir2', 'test.txt'), '456')
562 write_file((src_dir, 'test_dir2', 'subdir', 'test.txt'), '456')
563 write_file((src_dir, 'test_dir2', 'subdir2', 'test.py'), '456')
622 write_file((src_dir, 'test_dir', 'subdir', 'test.txt'), '456')
662 write_file((src_dir, 'permissive.txt'), '123')
664 write_file((src_dir, 'restrictive.txt'), '456')
743 write_file((src_dir, 'test.txt'), '123')
745 write_file((src_dir, 'test_dir', 'test.txt'), '456')
758 write_file(valid_file, 'abc')
807 write_file(src, 'foo')
819 write_file(src, 'pol')
834 write_file(src, 'foo')
835 write_file(dst, 'foo')
867 write_file(src, 'foo')
868 write_file(dst, 'foo')
897 write_file(src, 'foo')
898 write_file(dst, 'foo')
912 write_file(src, 'foo')
916 write_file(dst, 'bar')
954 write_file(file1, 'xxx')
955 write_file(file2, 'xxx')
981 write_file(src, 'foo')
983 write_file(dst, 'bar')
997 write_file(dst, 'bar')
1027 write_file(src, src)
1028 write_file(srcro, srcro)
1034 write_file(dst, dst)
1035 write_file(dstro, dstro)
1051 write_file(src, 'foo')
1057 write_file(dst, 'bar')
1070 write_file((tmpdir, fname), 'xxx')
1089 write_file(src, 'foo')
1131 write_file(src, 'foo')
1165 write_file(src, 'foo')
1179 write_file(src, 'foo')
1196 write_file(src_file, 'foo')
1216 write_file(src, 'foo')
1289 write_file(src_file, 'foo')
1299 write_file(src_file, 'foo')
1316 write_file(src_file, 'foo')
1327 write_file(src_file, 'foo')
1389 write_file((dist, 'file1'), 'xxx')
1390 write_file((dist, 'file2'), 'xxx')
1392 write_file((dist, 'sub', 'file3'), 'xxx')
1395 write_file((root_dir, 'outer'), 'xxx')
1742 write_file(filename, 'testing chown function')
2594 write_file(TESTFN2, b"hello", binary=True)