Replies: 1 comment
-
You can verify that the parent directory is root as follows: $target = $volume->file($args['target']);
if (!empty($target['phash']) && strpos($target['phash'], $volume->id()) === 0) {
// not root
$parent = $volume->file($args['phash']);
} else {
// is root
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, is there a way to limit the subfolders creation depth. eg
But do not accept creation under FolderA.
I try to use bind in backend constructor with mkdir.pre, but not able to check if parent dir is root or not.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions