Home
last modified time | relevance | path

Searched refs:target_is_directory (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython2/Lib/test/
Dsymlink_support.py29 def _symlink_win32(target, link, target_is_directory=False): argument
88 target_is_directory = target_is_directory or os.path.isdir(target)
89 handle_nonzero_success(CreateSymbolicLink(link, target, target_is_directory))
/external/python/cpython3/Lib/
Dpathlib.py424 def symlink(a, b, target_is_directory): argument
429 def symlink(a, b, target_is_directory): argument
1323 def symlink_to(self, target, target_is_directory=False): argument
1330 self._accessor.symlink(target, self, target_is_directory)
/external/python/cpython3/Doc/library/
Dpathlib.rst1010 .. method:: Path.symlink_to(target, target_is_directory=False)
1013 *target_is_directory* must be true (default ``False``) if the link's target
1014 is a directory. Under POSIX, *target_is_directory*'s value is ignored.
Dos.rst2690 .. function:: symlink(src, dst, target_is_directory=False, *, dir_fd=None)
2697 as a directory if *target_is_directory* is ``True`` or a file symlink (the
2698 default) otherwise. On non-Windows platforms, *target_is_directory* is ignored.
2724 Added the *dir_fd* argument, and now allow *target_is_directory*
/external/python/cpython3/Modules/clinic/
Dposixmodule.c.h3143 int target_is_directory, int dir_fd);
3153 int target_is_directory = 0; in os_symlink() local
3157 …path_converter, &src, path_converter, &dst, &target_is_directory, SYMLINKAT_DIR_FD_CONVERTER, &dir… in os_symlink()
3160 return_value = os_symlink_impl(module, &src, &dst, target_is_directory, dir_fd); in os_symlink()
/external/python/cpython3/Lib/test/test_import/
D__init__.py938 os.symlink(self.tagged, self.package_name, target_is_directory=True)
/external/python/cpython3/Lib/test/
Dtest_pathlib.py1256 os.symlink(src, dest, target_is_directory=True)
1854 link.symlink_to(target, target_is_directory=True)
Dtest_os.py229 target_is_directory=False, dir_fd=None)
3433 target_is_directory=True)
Dtest_shutil.py910 target_is_directory=True)
/external/python/cpython3/Modules/
Dposixmodule.c7393 int target_is_directory, int dir_fd) in os_symlink_impl() argument
7419 target_is_directory |= _check_dirW(src->wide, dst->wide); in os_symlink_impl()
7421 target_is_directory); in os_symlink_impl()
/external/python/cpython3/Doc/whatsnew/
D3.3.rst1701 * :func:`os.symlink` now accepts (and ignores) the ``target_is_directory``