REST call (HTTP) to get ALL files (including from all sub-folders of sub-folders) starting from a certain SharePoint Path

I need to write the HTTP query (will call it from a Python script) to get ALL the files (including from all sub-folders of sub-folders) starting from a specific SharePoint Path. I need to run this on a SharePoint 2016 installation.

My Path is something like: https://<my-sharepoint-host>/<subsite>/<library-name>/folder1/sub-folder1

I’ve been making a lot of attempts around this:


I could obtain a long list of items (files and folders) with the needed info; below is am extract from such an item:

, {
    "odata.type": "SP.Data.EngineeringItem",
    "File": {
        "odata.type": "SP.File",
        "Name": "sample.pptx",
        "ServerRelativeUrl": "<my-sharepoint-host>/<subsite>/<library-name>/some-other-folder-path/.../not-needed.pptx",
    "FileLeafRef": "sample.pptx"

, {
    "odata.type": "SP.Data.EngineeringItem",
    "File": {
        "odata.type": "SP.File",
        "Name": "sample.pptx",
        "ServerRelativeUrl": "<my-sharepoint-host>/<subsite>/<library-name>/folder1/sub-folder1/needed.docx",
    "FileLeafRef": "sample.pptx"

THE PROBLEM is that I cannot filter them more than this. I’m getting the content of the whole library, and I can’t figure out how to filter based on the folder path (in my example, folder1/sub-folder1)

How could I do that ?

I tried adding &$filter=... but I could not figure out how to refer to the ServerRelativeUrl field.

Also, where could I find a list of accepted values to use with?$select=... ?

Thank you.

file system – Proc-folder: App generated almost a thousand sub-folders

When I was searching with the “File Manager” app (com.alphainventor.filemanager) for some files in the root-folder, it generated hundreds (almost a thousand) folders in the proc-folder.
(I don’t have root-access btw., but still can see some files there.)

They’re named just 1, 2, 3, 4, etc.
Each folder has about ~40 files in it.

I already found out, that those are virtual files, that eat like no space.
However I would still like to clean those up.

Is there any smart way to do this?
I was hoping, they would be removed by restarting the system or deinstalling the app, but so far nothing worked. :/

I am on an LG G7 with Android 8.
Any help would be greatly appreciated.

linux – Ubuntu SFTP hide unauthorized subfolders

I currently run Ubuntu 20.04 Desktop server.
And I am using the SFTP function by installing OpenSSH on the server.

For testing purposes, I temporarily created a directory called /home/mydirectory/storage, where I created subfolders, each of which had folder-name privileges.

For example I have named A,B,C folders and each A,B,C folders has A,B,C groups privilege.
And I expected that if A group person has access to /home/mydirectory/storage folder with SFTP client, it should only show A folder. And also the B, C folder should be hidden and cannot access.

But the current situation shows A,B,C all folders and cannot access to B,C folder.
How can I hide the B,C folder?

How to retrieve subfolders by content type using SharePoint REST API?

How can I retrieve subfolders inside a folder filtered by content type using REST API?

Using /_api/web/lists/GetByTitle(‘Reports’)/Items(1)/folder/Folders?$filter=ContentType eq ‘DocSetCT’ does not work.

Using _api/Web/GetFolderByServerRelativeUrl(‘webServerRelativeUrl}’)/Folders does not help either.

Any ideas

linux – how to restrict access to subfolders on samba?

I need that some users from the domain group ‘Security Unit’ (samba the list of users takes from Active Directory) did not have access to the so-called Secret directory.
How can this be implemented?

    comment = test folder
    path = /folder2/test
    browseable = yes
    read only = no
    inherit permissions = yes
    create mask = 0770
    directory mask = 0770
    valid users = "@kumar.inSecurity Unit"
    admin users = "@kumar.inSpecial Domain Administrators"
    vfs objects = full_audit
    full_audit:prefix = %u|%I|%S
    full_audit:failure = none
    full_audit:success = mkdir rmdir open read write pwrite sendfile rename unlink lock
    full_audit:facility = local5
    full_audit:priority = notice

the test directory has the following structure

├── public
└── secret

htaccess – Rewriting subfolders to specific parent folder in WordPress

I have created one page with name /parent/ and assigned new template template-parent.php that has some 3rd party software showing via JavaScript. I need to rewrite all subfolders to this parent so when someone tries to access

the url will remain the same, but he will be pointed to so that loaded scripts could process the request.

The code should be something like this

RewriteRule ^(parent)/(.+)$ /$1/ (QSA,L)

but I am not sure where to put it, should I use .htaccess or put it in functions.php
If in htaccess, then will it be before, after or in the middle of wordpress code.

subfolders – Creating an intranet via Sharepoint, how to make specific document folders visible on each page and not on ALL pages

I am creating an intranet thru Sharepoint for our real estate company. I have created 6 different pages. Office Team, Agent Team, Marketing, Listings, Closings, HR. on each of these pages I want to house ONLY the folders/documents that pertain to that specific group/page. However, when I create a new folder it displays on EVERY page. How can I make this happen?

amazon web services – AWS S3 Policy: One non-public bucket, separate sub-folders for each user, restricted access

at the moment I’m struggling how to create a secure policy for my Amazon S3 bucket.
My plan is to have one bucket with several sub-folders for separate (IAM) users.
Access should only be programmatically with access-ID and secret key, not via console.


Each user should only have access to his own folder and should not see the other folders in the bucket.

Each user should only have the right to PutObject (store), GetObject (download), DeleteObject (delete) inside his folder.

Users should not be allowed to do anything else like creating own buckets; the stricter the better.


The folders are meant for storage of each users system backups and personal data, so it’s crucial that no other user can see what’s inside an other user’s folder.

  • I found the following policy at Amazon but I’m not sure if this policy is strict enough to secure and restrict access like mentioned above.

  • And is “ListAllMyBuckets” really necessary or poses chances that every user could also see other buckets in my account like this example says?

    "Version": "2012-10-17",
    "Statement": (
            "Effect": "Allow",
            "Action": (
            "Resource": "*"
            "Effect": "Allow",
            "Action": "s3:ListBucket",
            "Resource": "arn:aws:s3:::bucket-name",
            "Condition": {
                "StringLike": {
                    "s3:prefix": (
            "Effect": "Allow",
            "Resource": (

I’m quite new to AWS S3, so any help regarding my problem would be greatly appreciated.


development – How to find all subfolders inside a SharePoint Folder using PNP Framework

I want to find all the subfolders of a SharePoint folder using PNP framework. My current code is like this

            using (var cxt = new AuthenticationManager().GetACSAppOnlyContext(siteUrl, clientId, clientSecret))
            Microsoft.SharePoint.Client.Web oWebsite = cxt.Web;
            List list = oWebsite.Lists.GetByTitle("Documents");
            FolderCollection fcol = list.RootFolder.Folders;

This gives me only direct descendants. But I want to get all sub folders. How can I achieve this?