reykit 1.1.46__py3-none-any.whl → 1.1.48__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
reykit/ros.py CHANGED
@@ -973,6 +973,25 @@ class Folder(Base):
973
973
  return match_paths
974
974
 
975
975
 
976
+ def join(self, path: str) -> str:
977
+ """
978
+ Join folder path and relative path.
979
+
980
+ Parameters
981
+ ----------
982
+ path : Relative path.
983
+
984
+ Returns
985
+ -------
986
+ Joined path.
987
+ """
988
+
989
+ # Join.
990
+ join_path = os_join(self.path, path)
991
+
992
+ return join_path
993
+
994
+
976
995
  def create(self, report: bool = False) -> None:
977
996
  """
978
997
  Create folders.
@@ -1196,7 +1215,7 @@ class Folder(Base):
1196
1215
  """
1197
1216
 
1198
1217
  # Judge.
1199
- result = self.search(pattern, True)
1218
+ result = self.search(pattern)
1200
1219
  judge = result is not None
1201
1220
 
1202
1221
  return judge
@@ -1205,6 +1224,9 @@ class Folder(Base):
1205
1224
  __call__ = paths
1206
1225
 
1207
1226
 
1227
+ __add__ = __radd__ = join
1228
+
1229
+
1208
1230
  class TempFile(Base):
1209
1231
  """
1210
1232
  Temporary file type.
@@ -1660,6 +1682,25 @@ class TempFolder(Base):
1660
1682
  return match_paths
1661
1683
 
1662
1684
 
1685
+ def join(self, path: str) -> str:
1686
+ """
1687
+ Join folder path and relative path.
1688
+
1689
+ Parameters
1690
+ ----------
1691
+ path : Relative path.
1692
+
1693
+ Returns
1694
+ -------
1695
+ Joined path.
1696
+ """
1697
+
1698
+ # Join.
1699
+ join_path = os_join(self.path, path)
1700
+
1701
+ return join_path
1702
+
1703
+
1663
1704
  @property
1664
1705
  def name(self) -> str:
1665
1706
  """
@@ -1821,7 +1862,7 @@ class TempFolder(Base):
1821
1862
  """
1822
1863
 
1823
1864
  # Judge.
1824
- result = self.search(pattern, True)
1865
+ result = self.search(pattern)
1825
1866
  judge = result is not None
1826
1867
 
1827
1868
  return judge
@@ -1839,6 +1880,9 @@ class TempFolder(Base):
1839
1880
  __call__ = paths
1840
1881
 
1841
1882
 
1883
+ __add__ = __radd__ = join
1884
+
1885
+
1842
1886
  def doc_to_docx(path: str, save_path: str | None = None) -> str:
1843
1887
  """
1844
1888
  Convert `DOC` file to `DOCX` file.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reykit
3
- Version: 1.1.46
3
+ Version: 1.1.48
4
4
  Summary: Kit method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reykit/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -8,7 +8,7 @@ reykit/rlog.py,sha256=FpxIa24jyr806KVdIjhaqmiggOEwuwZ7ncros9YNNHA,25592
8
8
  reykit/rmonkey.py,sha256=9-NvBM4phThKTHpqTSPlPGfJWcoDSp4EVl8x3xHJacg,7951
9
9
  reykit/rnet.py,sha256=zvEWAM42jAdQT868FFDrm-OPn5f3SNfMZP-bU8Sbx0A,16934
10
10
  reykit/rnum.py,sha256=PhG4V_BkVfCJUsbpMDN1umGZly1Hsus80TW8bpyBtyY,3653
11
- reykit/ros.py,sha256=ri7MtbvhfL20GHBiAEjyTCe6lMJqc5bRaRV5m8rSca4,41860
11
+ reykit/ros.py,sha256=0eQ0gshMsYuK_w4hP5A3aa2y6ftlEf0buHrOCR5EBjk,42594
12
12
  reykit/rrand.py,sha256=9QPXCsREIu45g6WP-XN67X05kmW3cTmctn3InvqYxuY,8947
13
13
  reykit/rre.py,sha256=4DVxy28dl5zn6_II8-cgr7E2nVPH5QJIJVB4o7Vsf1A,6078
14
14
  reykit/rschedule.py,sha256=_nrfrXYxlFAKCDbM8ibTTb60zNDlHxyE310cv-A19Kw,5799
@@ -22,7 +22,7 @@ reykit/rwrap.py,sha256=3at29SGx5As9fmv1t9m_ibjHTvXpA6uPo-mroSsrX-I,15323
22
22
  reykit/rzip.py,sha256=ABUDLwEHQIpcvZbJE_oV78H7dik6nC7kaRz660Ro9Os,3481
23
23
  reykit/rdll/__init__.py,sha256=WrJ_8jp_hbn2nl1osrR3buZMsmAGRVY6HfQdhDoJpSM,698
24
24
  reykit/rdll/rdll_core.py,sha256=o6-rKcTQgxZQe0kD3GnwyNb3KL9IogzgCQNOmYLMm7A,5086
25
- reykit-1.1.46.dist-info/METADATA,sha256=rSDs_msZ4jYEbCqkDHBV5dnm2_AsxH_AJihnZ0bkrUk,1872
26
- reykit-1.1.46.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- reykit-1.1.46.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
- reykit-1.1.46.dist-info/RECORD,,
25
+ reykit-1.1.48.dist-info/METADATA,sha256=bpJw4erCKgErra1iE0A6N_0cENGwYle4NSFua5wrBgE,1872
26
+ reykit-1.1.48.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ reykit-1.1.48.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
+ reykit-1.1.48.dist-info/RECORD,,