Lines Matching refs:write_file
65 def write_file(path, content, binary=False): function
181 write_file(os.path.join(victim, 'somefile'), 'foo')
214 write_file(file1, 'foo')
256 write_file(file1, 'foo')
278 write_file((tmpdir, "tstfile"), "")
374 write_file((TESTFN, 'foo'), 'foo')
446 write_file((src_dir, 'test.txt'), '123')
448 write_file((src_dir, 'test_dir', 'test.txt'), '456')
466 write_file((src_dir, 'nonexisting.txt'), '123')
469 write_file((dst_dir, 'existing_dir', 'existing.txt'), 'will be replaced')
470 write_file((src_dir, 'existing_dir', 'existing.txt'), 'has been replaced')
493 write_file((src_dir, 'file.txt'), 'foo')
524 write_file((src_dir, 'test.txt'), '123')
525 write_file((src_dir, 'test.tmp'), '123')
527 write_file((src_dir, 'test_dir', 'test.txt'), '456')
529 write_file((src_dir, 'test_dir2', 'test.txt'), '456')
532 write_file((src_dir, 'test_dir2', 'subdir', 'test.txt'), '456')
533 write_file((src_dir, 'test_dir2', 'subdir2', 'test.py'), '456')
592 write_file((src_dir, 'test_dir', 'subdir', 'test.txt'), '456')
632 write_file((src_dir, 'permissive.txt'), '123')
634 write_file((src_dir, 'restrictive.txt'), '456')
711 write_file((src_dir, 'test.txt'), '123')
713 write_file((src_dir, 'test_dir', 'test.txt'), '456')
729 write_file((src_dir, 'test_dir', 'test.txt'), '456')
768 write_file(src, 'foo')
780 write_file(src, 'pol')
795 write_file(src, 'foo')
796 write_file(dst, 'foo')
828 write_file(src, 'foo')
829 write_file(dst, 'foo')
858 write_file(src, 'foo')
859 write_file(dst, 'foo')
873 write_file(src, 'foo')
877 write_file(dst, 'bar')
915 write_file(file1, 'xxx')
916 write_file(file2, 'xxx')
942 write_file(src, 'foo')
944 write_file(dst, 'bar')
958 write_file(dst, 'bar')
988 write_file(src, src)
989 write_file(srcro, srcro)
995 write_file(dst, dst)
996 write_file(dstro, dstro)
1013 write_file(src, 'foo')
1019 write_file(dst, 'bar')
1032 write_file((tmpdir, fname), 'xxx')
1051 write_file(src, 'foo')
1093 write_file(src, 'foo')
1127 write_file(src, 'foo')
1141 write_file(src, 'foo')
1156 write_file(src, 'foo')
1227 write_file(src_file, 'foo')
1237 write_file(src_file, 'foo')
1296 write_file((dist, 'file1'), 'xxx')
1297 write_file((dist, 'file2'), 'xxx')
1299 write_file((dist, 'sub', 'file3'), 'xxx')
1302 write_file((root_dir, 'outer'), 'xxx')
1624 write_file(filename, 'testing chown function')
2442 write_file(TESTFN2, b"hello", binary=True)