You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Original : https://www.php.net/manual/en/function.glob.php
188
+
// The glob() function searches for all the pathnames matching pattern according to the rules used by the libc glob() function, which is similar to the rules used by common shells.
// Original : https://www.php.net/manual/en/function.realpath.php
262
+
// realpath() expands all symbolic links and resolves references to /./, /../ and extra / characters in the input path and returns the canonicalized absolute pathname.
263
+
funcRealPath(pathstring) (string, error) {
264
+
returnfilepath.Abs(path)
265
+
}
266
+
267
+
// Rename - Renames a file or directory.
268
+
// Original : https://www.php.net/manual/en/function.rename.php
269
+
// Attempts to rename oldname to newname, moving it between directories if necessary. If renaming a file and newname exists, it will be overwritten. If renaming a directory and newname exists, this function will emit a warning.
270
+
funcRename(oldpath, newpathstring) error {
271
+
returnos.Rename(oldpath, newpath)
272
+
}
273
+
274
+
// RmDir — Removes directory.
275
+
// Original : https://www.php.net/manual/en/function.rmdir.php
276
+
// Attempts to remove the directory named by dirname. The directory must be empty, and the relevant permissions must permit this. A E_WARNING level error will be generated on failure.
277
+
funcRmDir(pathstring) error {
278
+
returnos.RemoveAll(path)
279
+
}
280
+
281
+
// Stat - Gives information about a file.
282
+
// Original : https://www.php.net/manual/en/function.stat.php
283
+
// Gathers the statistics of the file named by filename. If filename is a symbolic link, statistics are from the file itself, not the symlink. Prior to PHP 7.4.0, on Windows NTS builds the size, atime, mtime and ctime statistics have been from the symlink, in this case.
284
+
funcStat(namestring) (os.FileInfo, error) {
285
+
returnos.Stat(name)
286
+
}
287
+
288
+
// Unlink - Deletes a file.
289
+
// Original : https://www.php.net/manual/en/function.unlink.php
290
+
// Deletes filename. Similar to the Unix C unlink() function. An E_WARNING level error will be generated on failure.
0 commit comments