Skip to main content
Box Employee
May 21, 2025 12:47 PM UTC
Question

BOX API - move file issue

Hi all,

we are developing a java tool that ingest files from box folder.

We would like to have a clarification about the scenario described below..

When a file is moved from a source directory to a target directory, we are observing that the last modification date attribute (returned by box API) does  not change even if  a file metadata (last modification date) has been modified.

Are we missing some configuration/settings or this is a behaviout of box API (a file moving in not caught at API level) ?

    3 replies

    Box Employee
    May 21, 2025 12:47 PM UTC

     If I am understanding correctly, what you are describing is the expected behavior. Moving a file to another folder shouldn't change the file's modification date. A file's modification date updates when the contents of a file changes.

    Translate
    Box Employee
    May 21, 2025 12:47 PM UTC

    Murtza

    the issue is that we have a search engine that indexes Box contentes.

    if a file is added moved delede we need to know it and update the index . 

    we can only detect file addition . So if today one file gets moved or deleted on the Ge Box my index will not reflect this .

     

    thanks,

    Fabio 

    Translate
    Box Employee
    May 21, 2025 12:47 PM UTC

    Any update on this issue? How can we resolve this issue now?? We have same requirement in our project

    Translate