/dports/lang/ruby26/ruby-2.6.9/test/webrick/ |
H A D | test_httputils.rb | 9 assert_equal("/foo", normalize_path("/foo")) 10 assert_equal("/foo/bar/", normalize_path("/foo/bar/")) 12 assert_equal("/", normalize_path("/foo/../")) 13 assert_equal("/", normalize_path("/foo/..")) 23 assert_equal("/foo/", normalize_path("/foo/./")) 24 assert_equal("/foo/", normalize_path("/foo/.")) 25 assert_equal("/foo/", normalize_path("/foo/././")) 26 assert_equal("/foo/", normalize_path("/foo/./.")) 35 assert_raise(RuntimeError){ normalize_path("..") } 36 assert_raise(RuntimeError){ normalize_path("/..") } [all …]
|
/dports/www/erlang-mochiweb/mochiweb-2.18.0/src/ |
H A D | mochiweb_util.erl | 17 -export([normalize_path/1]). 1018 "" = normalize_path(""), 1019 "/" = normalize_path("/"), 1020 "/" = normalize_path("//"), 1021 "/" = normalize_path("///"), 1022 "foo" = normalize_path("foo"), 1023 "/foo" = normalize_path("/foo"), 1024 "/foo" = normalize_path("//foo"), 1025 "/foo" = normalize_path("///foo"), 1026 "foo/" = normalize_path("foo/"), [all …]
|
/dports/databases/couchdb3/apache-couchdb-3.2.1/src/mochiweb/src/ |
H A D | mochiweb_util.erl | 17 -export([normalize_path/1]). 1043 "" = normalize_path(""), 1044 "/" = normalize_path("/"), 1045 "/" = normalize_path("//"), 1046 "/" = normalize_path("///"), 1047 "foo" = normalize_path("foo"), 1048 "/foo" = normalize_path("/foo"), 1049 "/foo" = normalize_path("//foo"), 1050 "/foo" = normalize_path("///foo"), 1051 "foo/" = normalize_path("foo/"), [all …]
|
/dports/net-im/prosody/prosody-0.11.13/spec/ |
H A D | util_http_spec.lua | 67 assert.equal("/", http.normalize_path("/")); 68 assert.equal("/", http.normalize_path("")); 69 assert.equal("/", http.normalize_path("/", true)); 70 assert.equal("/", http.normalize_path("", true)); 74 assert.equal("/foo", http.normalize_path("foo")); 75 assert.equal("/foo", http.normalize_path("/foo")); 76 assert.equal("/foo", http.normalize_path("foo/")); 77 assert.equal("/foo", http.normalize_path("/foo/")); 81 assert.equal("/foo/", http.normalize_path("foo", true)); 82 assert.equal("/foo/", http.normalize_path("/foo", true)); [all …]
|
/dports/sysutils/mcfly/mcfly-0.5.11/src/ |
H A D | path_update_helpers.rs | 6 pub fn normalize_path(incoming_path: &str) -> String { in normalize_path() function 108 use super::{normalize_path, parse_mv_command}; 115 assert_eq!(normalize_path("/"), String::from("/")); in normalize_path_works_absolute_paths() 116 assert_eq!(normalize_path("////"), String::from("/")); in normalize_path_works_absolute_paths() 121 assert_eq!(normalize_path("~/"), env::var("HOME").unwrap()); in normalize_path_works_with_tilda() 123 normalize_path("~/foo"), in normalize_path_works_with_tilda() 132 assert_eq!(normalize_path("/foo/bar/../baz"), String::from("/foo/baz")); in normalize_path_works_with_double_dots() 133 assert_eq!(normalize_path("/foo/bar/../../baz"), String::from("/baz")); in normalize_path_works_with_double_dots() 134 assert_eq!(normalize_path("/foo/bar/../../"), String::from("/")); in normalize_path_works_with_double_dots() 135 assert_eq!(normalize_path("/foo/bar/../.."), String::from("/")); in normalize_path_works_with_double_dots() [all …]
|
/dports/net/dropbox-uploader/Dropbox-Uploader-1.0/ |
H A D | dropbox_uploader.sh | 370 function normalize_path function 392 local FILE=$(normalize_path "$1") 431 local SRC=$(normalize_path "$1") 432 local DST=$(normalize_path "$2") 489 local FILE_SRC=$(normalize_path "$1") 490 local FILE_DST=$(normalize_path "$2") 533 local FILE_SRC=$(normalize_path "$1") 652 local DIR_SRC=$(normalize_path "$1") 653 local DIR_DST=$(normalize_path "$2") 668 local SRC=$(normalize_path "$1") [all …]
|
/dports/net/libngtcp2/ngtcp2-224bd62/examples/ |
H A D | util_test.cc | 223 CU_ASSERT("/" == util::normalize_path("/")); in test_util_normalize_path() 224 CU_ASSERT("/" == util::normalize_path("//")); in test_util_normalize_path() 225 CU_ASSERT("/foo" == util::normalize_path("/foo")); in test_util_normalize_path() 226 CU_ASSERT("/foo/bar/" == util::normalize_path("/foo/bar/")); in test_util_normalize_path() 227 CU_ASSERT("/foo/bar/" == util::normalize_path("/foo/abc/../bar/")); in test_util_normalize_path() 228 CU_ASSERT("/foo/bar/" == util::normalize_path("/../foo/abc/../bar/")); in test_util_normalize_path() 230 util::normalize_path("/./foo/././abc///.././bar/./")); in test_util_normalize_path() 231 CU_ASSERT("/foo/" == util::normalize_path("/foo/.")); in test_util_normalize_path() 232 CU_ASSERT("/foo/bar" == util::normalize_path("/foo/./bar")); in test_util_normalize_path() 233 CU_ASSERT("/bar" == util::normalize_path("/foo/./../bar")); in test_util_normalize_path() [all …]
|
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/curl-sys-0.4.51+curl-7.80.0/curl/tests/ |
H A D | pathhelp.pm | 129 sub normalize_path; 357 return normalize_path($path); 368 return normalize_path($w32drive . $path); 394 $path = normalize_path($path); 475 $path = normalize_path($path); 500 $path = normalize_path($path); 516 $path = normalize_path($w32drive . $path); 545 return normalize_path($path); 556 sub normalize_path { subroutine 681 return normalize_path($res);
|
/dports/devel/sentry-cli/sentry-cli-1.71.0/cargo-crates/curl-sys-0.4.48+curl-7.79.1/curl/tests/ |
H A D | pathhelp.pm | 129 sub normalize_path; 357 return normalize_path($path); 368 return normalize_path($w32drive . $path); 394 $path = normalize_path($path); 475 $path = normalize_path($path); 500 $path = normalize_path($path); 516 $path = normalize_path($w32drive . $path); 545 return normalize_path($path); 556 sub normalize_path { subroutine 681 return normalize_path($res);
|
/dports/audio/lewton/lewton-0.10.2/cargo-crates/curl-sys-0.4.25/curl/tests/ |
H A D | pathhelp.pm | 129 sub normalize_path; 357 return normalize_path($path); 368 return normalize_path($w32drive . $path); 386 $path = normalize_path($path); 461 $path = normalize_path($path); 486 $path = normalize_path($path); 502 $path = normalize_path($w32drive . $path); 523 return normalize_path($path); 534 sub normalize_path { subroutine 659 return normalize_path($res);
|
/dports/net/proby/proby-1.0.2/cargo-crates/curl-sys-0.4.34+curl-7.71.1/curl/tests/ |
H A D | pathhelp.pm | 129 sub normalize_path; 357 return normalize_path($path); 368 return normalize_path($w32drive . $path); 386 $path = normalize_path($path); 461 $path = normalize_path($path); 486 $path = normalize_path($path); 502 $path = normalize_path($w32drive . $path); 523 return normalize_path($path); 534 sub normalize_path { subroutine 659 return normalize_path($res);
|
/dports/devel/cargo-generate/cargo-generate-0.9.0/cargo-crates/curl-sys-0.4.41+curl-7.75.0/curl/tests/ |
H A D | pathhelp.pm | 129 sub normalize_path; 357 return normalize_path($path); 368 return normalize_path($w32drive . $path); 386 $path = normalize_path($path); 461 $path = normalize_path($path); 486 $path = normalize_path($path); 502 $path = normalize_path($w32drive . $path); 523 return normalize_path($path); 534 sub normalize_path { subroutine 659 return normalize_path($res);
|
/dports/graphics/mupdf/mupdf-1.18.0-source/thirdparty/curl/tests/ |
H A D | pathhelp.pm | 129 sub normalize_path; 357 return normalize_path($path); 368 return normalize_path($w32drive . $path); 386 $path = normalize_path($path); 461 $path = normalize_path($path); 486 $path = normalize_path($path); 502 $path = normalize_path($w32drive . $path); 523 return normalize_path($path); 534 sub normalize_path { subroutine 659 return normalize_path($res);
|
/dports/lang/rust/rustc-1.58.1-src/vendor/curl-sys/curl/tests/ |
H A D | pathhelp.pm | 129 sub normalize_path; 357 return normalize_path($path); 368 return normalize_path($w32drive . $path); 394 $path = normalize_path($path); 475 $path = normalize_path($path); 500 $path = normalize_path($path); 516 $path = normalize_path($w32drive . $path); 545 return normalize_path($path); 556 sub normalize_path { subroutine 681 return normalize_path($res);
|
/dports/www/newsboat/newsboat-2.22.1/cargo-crates/curl-sys-0.4.39+curl-7.74.0/curl/tests/ |
H A D | pathhelp.pm | 129 sub normalize_path; 357 return normalize_path($path); 368 return normalize_path($w32drive . $path); 386 $path = normalize_path($path); 461 $path = normalize_path($path); 486 $path = normalize_path($path); 502 $path = normalize_path($w32drive . $path); 523 return normalize_path($path); 534 sub normalize_path { subroutine 659 return normalize_path($res);
|
/dports/multimedia/tautulli/Tautulli-2.8.0/lib/importlib_resources/ |
H A D | _legacy.py | 30 def normalize_path(path): function 46 return (_common.files(package) / normalize_path(resource)).open('rb') 52 return (_common.files(package) / normalize_path(resource)).read_bytes() 63 return (_common.files(package) / normalize_path(resource)).open( 101 resource = normalize_path(name) 121 return _common.as_file(_common.files(package) / normalize_path(resource))
|
/dports/devel/py-importlib-resources/importlib_resources-5.4.0/importlib_resources/ |
H A D | _legacy.py | 30 def normalize_path(path): function 46 return (_common.files(package) / normalize_path(resource)).open('rb') 52 return (_common.files(package) / normalize_path(resource)).read_bytes() 63 return (_common.files(package) / normalize_path(resource)).open( 101 resource = normalize_path(name) 121 return _common.as_file(_common.files(package) / normalize_path(resource))
|
/dports/games/xray_re-tools/xray_re-tools-52721d2/sources/xray_re/ |
H A D | xr_file_system_posix.cxx | 16 static char *normalize_path(const char *path) in normalize_path() function 29 char *temp = normalize_path(path); in create_folder() 42 char *temp = normalize_path(path); in create_path() 120 char *temp = normalize_path(path); in folder_exist() 130 char *temp = normalize_path(path); in file_exist() 140 char *temp = normalize_path(path); in file_length() 150 char *temp = normalize_path(path); in file_age() 171 char *temp = normalize_path(path); in r_open() 222 char *temp = normalize_path(path); in w_open()
|
/dports/www/fusionpbx/fusionpbx-4.4.1/core/install/resources/classes/ |
H A D | detect_switch.php | 135 $this->$field = normalize_path($matches[2]); 138 $this->_voicemail_vdir = normalize_path($this->_storage_dir . DIRECTORY_SEPARATOR . "voicemail"); 139 $this->_phrases_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "lang"); 140 $this->_extensions_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "directory"); 141 …$this->_sip_profiles_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "sip_profiles"… 142 $this->_dialplan_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "dialplan"); 143 $this->_backup_vdir = normalize_path(sys_get_temp_dir());
|
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/devices/usbms/ |
H A D | driver.py | 270 ebook_dir = self.normalize_path(prefix) 272 ebook_dir = self.normalize_path( 336 infile = self.normalize_path(infile) 380 path = self.normalize_path(location[0]) 399 book.size = os.stat(self.normalize_path(path)).st_size 430 path = self.normalize_path(path) 459 os.makedirs(self.normalize_path(self._main_prefix)) 465 os.makedirs(self.normalize_path(prefix)) 495 def normalize_path(cls, path): member in USBMS 509 cache_file = cls.normalize_path(os.path.join(prefix, name)) [all …]
|
/dports/misc/R-cran-xfun/xfun/man/ |
H A D | normalize_path.Rd | 3 \name{normalize_path} 4 \alias{normalize_path} 7 normalize_path(x, winslash = "/", must_work = FALSE) 18 normalize_path("~")
|
/dports/www/firefox/firefox-99.0/third_party/python/virtualenv/__virtualenv__/importlib_resources-5.2.2-py3-none-any/importlib_resources/ |
H A D | _legacy.py | 15 return (_common.files(package) / _common.normalize_path(resource)).open('rb') 20 return (_common.files(package) / _common.normalize_path(resource)).read_bytes() 30 return (_common.files(package) / _common.normalize_path(resource)).open( 65 resource = _common.normalize_path(name) 84 return _common.as_file(_common.files(package) / _common.normalize_path(resource))
|
/dports/lang/python311/Python-3.11.0a3/Lib/importlib/ |
H A D | _legacy.py | 33 return (_common.files(package) / _common.normalize_path(resource)).open('rb') 39 return (_common.files(package) / _common.normalize_path(resource)).read_bytes() 50 return (_common.files(package) / _common.normalize_path(resource)).open( 88 resource = _common.normalize_path(name) 108 return _common.as_file(_common.files(package) / _common.normalize_path(resource))
|
/dports/games/openmw/openmw-openmw-0.47.0/components/vfs/ |
H A D | manager.cpp | 22 void normalize_path(std::string& path, bool strict) in normalize_path() function 68 normalize_path(normalized, mStrict); in get() 84 normalize_path(normalized, mStrict); in exists() 96 normalize_path(name, mStrict); in normalizeFilename() 102 normalize_path(normalized, mStrict); in getArchive()
|
/dports/devel/py-flake8/flake8-4.0.1/tests/unit/ |
H A D | test_style_guide.py | 88 utils.normalize_path(p) 130 ("first_file.py", utils.normalize_path("first_file.py")), 131 ("second_file.py", utils.normalize_path("second_file.py")), 132 ("third_file.py", utils.normalize_path("third_file.py")), 134 ("sub_dir/__init__.py", utils.normalize_path("sub_dir/*")),
|