@@ -74,6 +74,7 @@ import fsutil
7474- [ ` get_file_size_formatted ` ] ( #get_file_size_formatted )
7575- [ ` get_filename ` ] ( #get_filename )
7676- [ ` get_parent_dir ` ] ( #get_parent_dir )
77+ - [ ` get_permissions ` ] ( #get_permissions )
7778- [ ` get_unique_name ` ] ( #get_unique_name )
7879- [ ` is_dir ` ] ( #is_dir )
7980- [ ` is_empty ` ] ( #is_empty )
@@ -107,6 +108,7 @@ import fsutil
107108- [ ` replace_file ` ] ( #replace_file )
108109- [ ` search_dirs ` ] ( #search_dirs )
109110- [ ` search_files ` ] ( #search_files )
111+ - [ ` set_permissions ` ] ( #set_permissions )
110112- [ ` split_filename ` ] ( #split_filename )
111113- [ ` split_filepath ` ] ( #split_filepath )
112114- [ ` split_path ` ] ( #split_path )
@@ -436,10 +438,17 @@ filename = fsutil.get_filename(path)
436438parent_dir = fsutil.get_parent_dir(path, levels = 1 )
437439```
438440
441+ #### ` get_permissions `
442+
443+ ``` python
444+ # Get the file/directory permissions.
445+ permissions = fsutil.get_permissions(path)
446+ ```
447+
439448#### ` get_unique_name `
440449
441450``` python
442- # Gets a unique name for a directory/file ath the given directory path.
451+ # Get a unique name for a directory/file ath the given directory path.
443452unique_name = fsutil.get_unique_name(path, prefix = " " , suffix = " " , extension = " " , separator = " -" )
444453```
445454
@@ -689,6 +698,13 @@ dirs = fsutil.search_dirs(path, pattern="**/*")
689698files = fsutil.search_files(path, pattern = " **/*.*" )
690699```
691700
701+ #### ` set_permissions `
702+
703+ ``` python
704+ # Set the file/directory permissions.
705+ fsutil.set_permissions(path, 700 )
706+ ```
707+
692708#### ` split_filename `
693709
694710``` python
0 commit comments